求助ant问题!!

06-09-08 ppff3344

<!-- =================================================================== -->
	<!-- Check "deploy_env" property and set it if necessary                 -->
	<!-- =================================================================== -->
	<target name="input_env" unless="deploy_env">
		<input message="Please enter the name of deployment environment:" addproperty="deploy_env" />
	</target>

	<!-- =================================================================== -->
	<!-- 1. Check for availability of specified environment		     -->
	<!-- 2. Load env specific properties				     -->
	<!-- 3. Turn class path -->
	<!-- =================================================================== -->
	<target name="set_env" depends="input_env">
		<condition property="project.fail">
			<or>
				<not>
					<isset property="deploy_env" />
				</not>
				<equals arg1="${deploy_env}" arg2="" />
				<not>
					<available file="${basedir}/env/${deploy_env}/build.properties" type="file" />
				</not>
			</or>
		</condition>
		<fail if="project.fail" message="'deploy_env' property has not been set or has wrong value." />

		<property name="app.env" value="${basedir}/env/${deploy_env}" />

		<!-- Load environment specific properties. -->
		<property file="${app.env}/build.properties" />

谁能帮我解释一下这段代码啊?我怎么看也没看明白,用ant编译的时候它就输出Please enter the name of deployment environment:

这到底是让我输入什么啊??

希望高手指点江山~

banq
2006-09-18 18:09

第一行出错,deploy_env这个target没有执行。