ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Andreasen" <>
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"
Step 2:
<target name="conditional_target" if=conditionOK>
   ... your target elements

From: jpyork []
Sent: Wed 1/23/2008 15:50
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:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

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