Re: Alternative to if else task.

2011-02-11 Thread ritchie
Yes. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381951.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@a

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Thanks Matt it works. I ran the script -If and unless is supported in v1.7.1. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381949.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: Alternative to if else task.

2011-02-11 Thread Rick Genter
On Feb 11, 2011, at 11:35 AM, ritchie wrote: > > > Are the if and unless attributes supported in Ant 1.7.1 and lower? I'm pretty sure if and unless have been part of ant since 1.0. They were there when I started to use ant in 2003. -- Rick Genter rick.gen...@gmail.com

Re: Alternative to if else task.

2011-02-11 Thread ritchie
http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381898.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e

Re: Alternative to if else task.

2011-02-11 Thread Peter Reilly
You do not need to place the antelope jar in the ant/lib directory. It is not in general a good idea to do this for antlibs. Add the antelope jar to the project files, for example in {PROJECT}/lib/ant/ and in the build.xml, use to define the tasks. In my build.xml I have the following:

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
On Fri, Feb 11, 2011 at 9:49 AM, ritchie wrote: > > Matt, > The target option would be good if the other target does not fail, but in > my build file i have target which executes perforce command and i capture > the result of the exec task in resultproperty. If the value of result > property is

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Matt, The target option would be good if the other target does not fail, but in my build file i have target which executes perforce command and i capture the result of the exec task in resultproperty. If the value of result property is ==0 then i execute another target else execute a different t

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
On Fri, Feb 11, 2011 at 9:34 AM, ritchie wrote: > > I am using a if else task in my build file and i had to add the additional > jar antelopetasksjar to my lib folder of ant to make this run. My > problem is for this to work for other developers they all have to add the > jar file to their an

Alternative to if else task.

2011-02-11 Thread ritchie
I am using a if else task in my build file and i had to add the additional jar antelopetasksjar to my lib folder of ant to make this run. My problem is for this to work for other developers they all have to add the jar file to their ant/lib dir, but my organization is not keen with this idea s