Try this http://sourceforge.net/project/showfiles.php?group_id=36177
-- 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: Madunic, Marijan (RBI-US) [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. September 2007 01:29 An: Ant Users List Betreff: RE: newbie help: conditional exec David, Thank you. I'll give it a try later when I have a moment. Where can I download antContrib? Marijan (Mario) Madunic -----Original Message----- From: David Weintraub [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 4:20 PM To: Ant Users List Subject: Re: newbie help: conditional exec Two steps: 1). After your test, do an <antcall> to call a new target 2). Us an "if" parameter in that target: For example: <available file="CVS\cvsArt.xml" property="artAvailable"/> <antcall target="artAvailable.target"/> <target name="artAvaliable.target if="artAvailable"> ... The other solution is to use the antContrib tasks which includes an <if> task: <if> <available file="CVS/cvsArt.xml"/> <then> ... </then> </if> I like a lot of the antContrib stuff, but you do have to make sure it is installed on all the machines that will use your build.xml file. On 9/11/07, Mario Madunic <[EMAIL PROTECTED]> wrote: > I have the following in my ant task to test for the existence of an xml file > after processing > > <available file="CSV\csvArt.xml" property="artAvailable" /> > > What I want to do is run <exec> based on the above property value of true. I > can't seem to find a task to do this. Any help will be appreciated. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > -- -- David Weintraub [EMAIL PROTECTED] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]