You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Alejandro Abdelnur <al...@sun.com> on 2001/09/02 04:08:06 UTC

[PATCH] ant1.4B2, target if attribute supports property value

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

Re: [PATCH] ant1.4B2, target if attribute supports property value

Posted by Stefan Bodewig <bo...@apache.org>.
On Sat, 01 Sep 2001, Alejandro Abdelnur <al...@sun.com>
wrote:

> 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.

This has been superseeded (in a way) by the condition task.

Stefan