ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Strausz <Tibor.Stra...@tridion.com>
Subject target ifTrue
Date Tue, 20 Aug 2002 09:14:31 GMT

Hi i have the following and that works but i was wondering if it was easy to
add the ifTrue and ifFalse to the target task.

now:
in build.xml
<target name="test" if="runtest" depends="init">
 do stuff
</target>

<target name="init" description="Setup the environment">
  <condition property="runtest">
    <istrue value="${test}" />
  </condition>
</target>

in default.properties
test=on

in my.properties
test=off

if there was a ifTrue than there is no need for the init task and because i
have about 20 targets it will get large and ugly.

tibi

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


Mime
View raw message