RE: newbie help: conditional exec

2007-09-12 Thread Madunic, Marijan \(RBI-US\)
dunic -Original Message- From: Bruce Atherton [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 9:23 AM To: Ant Users List Subject: Re: newbie help: conditional exec Better to adopt the Way of Ant (tm) rather than fighting against it. Think of your problem this way, and restructure

Re: newbie help: conditional exec

2007-09-12 Thread Bruce Atherton
Better to adopt the Way of Ant (tm) rather than fighting against it. Think of your problem this way, and restructure your build file to match: What you want to do is to put your article information into your database if there are any articles available. Before you can do that, you need to make

Re: newbie help: conditional exec

2007-09-12 Thread David Weintraub
age- > 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 to call a new target > 2). Us an "if" parameter i

Re: newbie help: conditional exec

2007-09-12 Thread Peter Reilly
On 9/12/07, David Weintraub <[EMAIL PROTECTED]> wrote: > Two steps: > > 1). After your test, do an to call a new target > 2). Us an "if" parameter in that target: For example: > > > > > It is not good practice to use . The normal way is just to have the target in the dependence list as normal,

RE: newbie help: conditional exec

2007-09-11 Thread Madunic, Marijan \(RBI-US\)
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

Re: newbie help: conditional exec

2007-09-11 Thread David Weintraub
Two steps: 1). After your test, do an to call a new target 2). Us an "if" parameter in that target: For example: ... The other solution is to use the antContrib tasks which includes an task: ... I like a lot of the antContrib stuff, but you do have to make sure it

RE: newbie help: conditional exec

2007-09-11 Thread Mario Madunic
Sorry I didn't give enough info. Since I'm a relative newbie to ant I create a pipeline task not relying on any other target. So in the example below my workflow looks like the following: unzip archive of xml files filter xml files parse xml files (will create CSV\csvArt.xml if there are any type

RE: newbie help: conditional exec

2007-09-11 Thread Anderson, Rob (Global Trade)
Use the if attribute of ... Be aware that this does not test the value of the artAvailable property, only whether or not it exists. See the manual for more info. http://ant.apache.org/manual/using.html#targets -Rob Anderson > -Original Message- > From: Mario Madunic [mailto:[EMAIL