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
e a alternate to if-else task which will not need any > additional jars to run? > -- > View this message in context: > http://ant.1045680.n5.nabble.com/Alternative-to-if-else-task-tp3381392p3381392.html > Sent from the Ant - U

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
ars to run? > The alternative is structured target dependencies per http://ant.apache.org/manual/targets.html#targets . HTH, Matt > -- > View this message in context: > http://ant.1045680.n5.nabble.com/Alternative-to-if-else-task-tp3381392p3381392.html > Sent from the A

Alternative to if else task.

2011-02-11 Thread ritchie
since there are more than 100 developers who would be using this build file and they want a alternate solution. My question is, is there a alternate to if-else task which will not need any additional jars to run? -- View this message in context: http://ant.1045680.n5.nabble.com/Alternative-to-if