ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Andreasen" <barry.andrea...@sentillion.com>
Subject RE: Checking a property with ant
Date Thu, 24 Jan 2008 09:45:17 GMT
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:jp_york@hotmail.com]
Sent: Wed 1/23/2008 15:50
To: user@ant.apache.org
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message