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 certain proper

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