ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Miola" ...@polito.it>
Subject Re: Does the <project> tag have an equivalent of failOnError attribut e?
Date Thu, 21 Feb 2002 09:09:22 GMT
use tag <fail> : http://jakarta.apache.org/ant/manual/CoreTasks/fail.html

----- Original Message -----
From: "Ryali, Ravi" <RRyali@BUYMEDIA.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, February 21, 2002 3:03 AM
Subject: Does the <project> tag have an equivalent of failOnError attribut
e?


>
> Hi,
>
> As a part of building our application using ANT, I delete some jars from
> directories, then compile my source files, jar them and copy the new JARs
to
> the same directories. But when my build fails, I want to retain the older
> JAR files so that my testing team has at least the old version to test
> against. Without using failOnError of <javac> , how can I do that?
>
> This is my algorithm:
>
> Step 1: copy the current JARs to a temp folder
>
> Step 2: Run the current build file to build the application
>
> Step 3: If step 2 fails, copy back the JARs from temp to original folders.
>
> So, all I want from my build file (step 2) is a flag depending on which, I
> will execute 3. So, just as <javac> has a failOnError attribute, does the
> <project> tag also have any such attributes?
>
> Thank you very much in advance
> Ravi
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message