ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Abdelnur <alejandro.abdel...@sun.com>
Subject [PATCH] ant1.4B2, target if attribute supports property value
Date Sun, 02 Sep 2001 02:08:06 GMT

i've modified the testIfCondition and testUnlessCondition methods from the
org.apache.tools.ant.Target class of Ant1.4B2 to support the evaluation of the
property value if specified.

for example:

   <target name="tomcatDeploy" if="server.type=tomcat">

this target will only be executed if "server.type" is defined and its value is
"tomcat"

the old behavior still works:

    <target name="tomcatDeploy" if="server.type">

it will get executed if "server.type" is defined.


attached you'll find the modified Target.java file.

regards.

a

Mime
View raw message