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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************** 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]