ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Checking a property with ant
Date Thu, 24 Jan 2008 06:31:53 GMT
> <target name="whatever" if="allOK">
> <target name="whatever" unless="allOK">

But dont forget: <target if|unless> checks whether a property with
the given name is set/not-set.

<property name="foo" value="true"/>
<target name="foo" unless="foo">
    <echo>I will be executed</echo>
</target>

<property name="bar" value="false"/>
<target name="bar" if="bar">
    <echo>I will be executed</echo>
</target>



Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message