Check out the if/unless attributes of <target>. Note that dependent targets (listed in the depends attribute) are executed before the if/unless condition are evaluated. --DD

 

-----Original Message-----
From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 9:04 AM
To: [EMAIL PROTECTED]
Subject: How to execute task just if a propertie is set

 

How do I execute an ant task conditionally? I want to reload a tomcat context just in case tomcat is started. I was thinking in setting a propertie with condition and http (to make sure tomcat is on). Just need to know how to execute the tomcat reload task if this propertie is set.

 

Regards

 

Emerson

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to