This is a 2 step process. First you need to also create a conditional property
based on the value of the property test. Then you can use that conditional
property in target elements to conditionalize their execution. For instance
Step 1:
<condition name="conditionOK">
<equals arg1="${test}" arg2="successful"
</condition>
Step 2:
<target name="conditional_target" if=conditionOK>
... your target elements
</target>
________________________________
From: jpyork [mailto:[EMAIL PROTECTED]
Sent: Wed 1/23/2008 15:50
To: [email protected]
Subject: Checking a property with ant
I have tried a few things today and still can't figure this out. I have a
properties file with a setting of say test=successful and I want ant to
check the property test to make sure it is set to successful before going
on. How do I do this?
--
View this message in context:
http://www.nabble.com/Checking-a-property-with-ant-tp15051347p15051347.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]