ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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>

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message