ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: <touch> does not support 'if' attribute
Date Wed, 30 Jul 2003 17:25:47 GMT
You can use the <if/> task from the ant-contrib project
or from the antelope project.

http://ant.apache.org/projects.html

Peter
On Wednesday 30 July 2003 18:04, Billy Bacon wrote:
> Does anyone have a work-around for this? I want to create a file on the
> system 'if' a property has been set within my ant target.
>
> For example, In my target I have a <junit> task that sets a failed property
> if one or more unit tests fail. Within the same target I want to create a
> file on the system (via the <touch> task) if and only if the failed
> property is set. I also tried to use the <exec> task but this too doesn't
> support the 'if' attribute.
>
> Any ideas?
>
> - Billy -
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message