ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
Subject RE: conditional execution
Date Fri, 17 Feb 2006 15:07:27 GMT
Ant-contrib has an "if" task which you could use.

http://ant-contrib.sourceforge.net/

However, the traditional Ant solution is to split each piece of
functionality into its own target, set properties based on condition,
and use the if / unless attributes on the targets.

Ben

-----Original Message-----
From: Paul Pogonyshev [mailto:p.pogonyshev@finamatics.com] 
Sent: Friday, February 17, 2006 10:04 AM
To: user@ant.apache.org
Subject: conditional execution

Hi,

Is it possible to do some sorts of conditional execution of tasks
other than <target if/unless="..."> and scripts (require extensions)?

I need things like if file exists, do this, else do that.  Or, if
files are equal (byte-wise), do something.

Paul

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



**************************************************************
This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************


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


Mime
View raw message