ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atif Pesh-Imam" <apeshi...@sapient.com>
Subject RE: How does one continue with build despite failure?
Date Fri, 20 Jun 2003 22:53:41 GMT
<quotation from manual>
By using the errorproperty and failureproperty attributes, it is
possible to perform setup work (such as starting an external server),
execute the test, clean up, and still fail the build in the event of a
failure.
</quotation from manual>

So from this documentation it looks like you can utilize these
properties within your task to get the functionality you need.  The
other property to look at is haltonfailure, obviously you want to make
sure that this property is set to false.

Check the manual at http://ant.apache.org to get more docs on the tasks
I mentioned above.

Hope this helps.

-a


-----Original Message-----
From: Rahul Kumar [mailto:rahulk911@hotmail.com] 
Sent: Friday, June 20, 2003 3:36 PM
To: user@ant.apache.org
Subject: RE: How does one continue with build despite failure?


In this particular case, it is junit. Each sub-dir is running junit
tests, 
and the ant build.xml in the root dir invokes the build in each sub-dir.
The 
build in the root must continue even if junit is some sub-dir fails.


>From: "Atif Pesh-Imam" <apeshimam@sapient.com>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: "Ant Users List" <user@ant.apache.org>
>Subject: RE: How does one continue with build despite failure?
>Date: Fri, 20 Jun 2003 15:14:35 -0700
>
>I assume that you're using the javac task in your all target. If you 
>are, then you should be able to set failonerror to false.
>
>Try that.
>
>-a
>
>-----Original Message-----
>From: Rahul Kumar [mailto:rahulk911@hotmail.com]
>Sent: Friday, June 20, 2003 2:59 PM
>To: user@ant.apache.org
>Subject: How does one continue with build despite failure?
>
>
>I have
>
><target name="compile"
>     <ant dir="test1" target="all"/>
>     <ant dir="test2" target="all"/>
></target>
>
>If the build in dir test1 fails, ant bails out and does not proceed 
>with
>
>build in test2. I would like the build in test2 to continue despite 
>failure in test1 (since they don't have any inter-dependency).
>
>_________________________________________________________________
>Help STOP SPAM with the new MSN 8 and get 2 months FREE* 
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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


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


Mime
View raw message