Look for the <if> task in ant-contrib: http://ant-contrib.sourceforge.net/
moran > -----Original Message----- > From: Paul Munsey (pmunsey) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 16, 2005 3:28 PM > To: 'Ant Users List' > Subject: Conditional tasks > > I'm trying to figure out how to call a task, conditionally. From what I > see > I can set properties with a condition, but how can I traslate that to a > task. For example, I only want to send mail to people if errors were found > in the build log file. I'll create my own code for parsing the build log, > but depending on the results I may or may not want to send email. > > Paul Munsey > [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]