My lazy header ...

AntDoc
Target fail.unless

fail.unless

Helper generic target that fails if an Ant property is not defined.

This target has been created just because Ant V1.4.1 does not provide the fail unless attribute facility.

The Ant ${PROPERTY_NAME} is the property being tested, and if not equal to true the ${MESSAGE} message is output and the target fails.


Detail:
<target
	description="Helper generic target that fails if an Ant property is not defined."
	name="fail.unless"
>
	<condition property="SUCCESS">
		<equals
			arg1="${PROPERTY_NAME}"
			arg2="true"
		/>
	</condition>

	<antcall target="fail.unless.bis"/>
</target>

... is just like my footer!

Edouard Mercier 2003.12.08 20:31:08 - AntDoc V0.8h - XSL Transformer Factory: com.icl.saxon.TransformerFactoryImpl