Alternativly use if-Task of antcontrib to do it in one step.
-- Jürgen Knuplesch www.icongmbh.de icon Systemhaus GmbH Tel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-299 Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -----Ursprüngliche Nachricht----- Von: Barry Andreasen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 24. Januar 2008 10:45 An: user@ant.apache.org Betreff: RE: Checking a property with ant 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: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]