ant-eclipse
Target check

check

Checks for the valid configuration.

This task fails if some of the mandatory properties are missing or have invalid values.

Detail:
<target
	description="Checks for the valid configuration."
	name="check"
>
	<--condition property="property.missing" value="jdk.version">
      <not><isset property="jdk.version" /></not>
    </condition>
    <fail if="property.missing" message="The property ${property.missing} was not set."/-->

	<condition
		property="property.invalid"
		value="jdk.version"
	>
		<not>			<or>
				<not>					<isset property="jdk.version"/>
				</not>

				<equals
					arg1="${jdk.version}"
					arg2="1.2"
				/>

				<equals
					arg1="${jdk.version}"
					arg2="1.3"
				/>

				<equals
					arg1="${jdk.version}"
					arg2="1.4"
				/>

				<equals
					arg1="${jdk.version}"
					arg2="1.5"
				/>
			</or>
		</not>
	</condition>

	<fail
		if="property.invalid"
		message="The property ${property.invalid} was invalid."
	/>
</target>


Edouard Mercier 2003.10.01 21:48:07 - AntDoc V0.8g - XSL Transformer Factory: org.apache.xalan.processor.TransformerFactoryImpl