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