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

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

Re: Alternative to if else task.

2011-02-11 Thread Peter Reilly
: One can do something similar for the antelope jar. Peter On Fri, Feb 11, 2011 at 3:34 PM, 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

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
t > property is ==0 then i execute another target else execute a different > target. > > > resultproperty="p4result"> > > > > > > > > > > > > So: -- >

Re: Alternative to if else task.

2011-02-11 Thread ritchie
target. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381432.html Sent from the Ant - Users mailing list archive at Nabble.com

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 > ja

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

RE: If else

2008-10-14 Thread Lucas Albers
riginal Message- From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2008 2:33 PM To: Ant Users List Subject: If else I am struggling with a very simple question. How do I test if a variable is defined or not? I tried: and and

RE: If else

2008-10-14 Thread Shawn Castrianni
esday, October 14, 2008 4:21 PM To: Ant Users List Subject: Re: If else that works. thanks But I don't understand what I was doing wrong. On Tue, Oct 14, 2008 at 1:44 PM, Alec Fernandez <[EMAIL PROTECTED]> wrote: > try the condition > >>> -Original Message-

Re: If else

2008-10-14 Thread Mohit Anchlia
t: Tuesday, October 14, 2008 10:33 PM >>> To: Ant Users List >>> Subject: If else >>> >>> I am struggling with a very simple question. How do I test if a >>> variable is defined or not? >>> >>> I tried: >>> >>> >&

RE: If else

2008-10-14 Thread Alec Fernandez
try the > -Original Message- >> From: Mohit Anchlia [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, October 14, 2008 10:33 PM >> To: Ant Users List >> Subject: If else >> >> I am struggling with a very simple question. How do I test if a >&

If else

2008-10-14 Thread Mohit Anchlia
I am struggling with a very simple question. How do I test if a variable is defined or not? I tried: and and Nothing seem to work. jboss.wily.jvmargs may or may not be there in property file ---

Re: Use of the "If else" condition in ANT

2008-02-04 Thread Olivier Gies
Hi Uday, Here are 2 solutions for an if-else in Ant: 1) Using you just use plain Ant 1.7, you can use the task, combining 'if' and 'unless' target attributes with target dependencies, as follows: ... ...

Use of the "If else" condition in ANT

2008-02-04 Thread Uday K. Sodhi
Hi, I am trying to use the if else condition in ANT, can someone gimme an example as to how this can be used. Here's what I am trying to do --> Search for a String in a text file --> If found --do target A --> Else -- do target B Th

Use of the "If else" condition in ANT

2008-02-04 Thread Uday K. Sodhi
Hi, I am trying to use the if else condition in ANT, can someone gimme an example as to how this can be used. Here's what I am trying to do --> Search for a String in a text file --> If found --do target A --> Else -- do target B

Re: Simple if/else Condition

2007-07-27 Thread Scot P. Floess
Of course, you could also just use Ant-contrib's task... It supports if-then-else functionality. Michael Giroux wrote: Hi Evan, On 7/17/07, Evan J <[EMAIL PROTECTED]> wrote: if (condition) perform some task, i.e. echo message="condition met" else perform another task Is there such tas

Re: Simple if/else Condition

2007-07-27 Thread Michael Giroux
Hi Evan, On 7/17/07, Evan J <[EMAIL PROTECTED]> wrote: > if (condition) > perform some task, i.e. echo message="condition met" > else > perform another task > > Is there such task available in Ant 1.7? This can be accomplished by wrapping the tasks in individual targets then defining a target

Re: Simple if/else Condition

2007-07-22 Thread Dale Anson
If you're not opposed to external tasks, either antcontrib (antcontrib.sourceforge.net) or Antelope (antelope.tigris.org) provide straight-up if/else tasks. Dale Evan J wrote: Hi, I read the documents on Condition and Available tasks and from what I see, both tasks only set a ce

RE: Simple if/else Condition

2007-07-18 Thread James Oltmans
Message- From: David Weintraub [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 9:37 AM To: Ant Users List Subject: Re: Simple if/else Condition That's what I get for answering mail past midnight after my brain goes to sleep. I mean "target" and not "task". Hm

Re: Simple if/else Condition

2007-07-18 Thread David Weintraub
That's what I get for answering mail past midnight after my brain goes to sleep. I mean "target" and not "task". Hmmm. How to tell whether a directory is empty... You could do this: Then, the answer will be yes. No good. I haven't tried this, but it might work: 1). Create a Path that conta

Re: Simple if/else Condition

2007-07-18 Thread Evan J
Thank you Qazwart, except that we don't have `task' task but rather `target' for antcall. Either way, it should get the job done. Now I have to figure out to see how I can check whether a directory (and its subdirectories) are empty -- Length doesn't help. On 7/18/07, Qazwart <[EMAIL PROTECTED]>

Re: Simple if/else Condition

2007-07-17 Thread Qazwart
On Jul 17, 2007, at 11:18 PM, Evan J wrote: if (condition) perform some task, i.e. echo message="condition met" else perform another task Check out the AntContrib tasks at . There is actually an ant task at

Simple if/else Condition

2007-07-17 Thread Evan J
Hi, I read the documents on Condition and Available tasks and from what I see, both tasks only set a certain property upon meeting the condition or otherwise. What I would like to accomplish is to actually perform a task if a condition met or else do something else. That is, if (condition) perf

RE: if/else in ANT ???

2003-09-30 Thread Shailesh Sharma
;ll get more details on this and related topics. -Original Message- From: Shailesh Sharma [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:41 PM To: Ant Users List Subject: RE: if/else in ANT ??? how could i check if the property is been set or not ??? Vikas Phonsa wrote:

if/else in ANT ???

2003-09-30 Thread Shailesh Sharma
Hi, could somebody tell me how to write an if/else in ANT. This is what i need to do: Iam setting 3 properties like this: and then in one of my targets ..i need to do something like this: if(check which ONE property among the above 3 is NOT null) { // do something like

RE: if/else in ANT ???

2003-09-30 Thread Vikas Phonsa
get more details on this and related topics. -Original Message- From: Shailesh Sharma [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:41 PM To: Ant Users List Subject: RE: if/else in ANT ??? how could i check if the property is been set or not ??? Vikas Phonsa <[