ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: How to run an ant target on success/failed build
Date Wed, 23 Jul 2008 09:12:34 GMT
 

-----Original Message-----
From: p2008 [mailto:prempel@gmail.com] 
Sent: Wednesday, July 23, 2008 12:35 AM
To: user@ant.apache.org
Subject: How to run an ant target on success/failed build

/*
I need to be able to trigger running a specific ant target when the
build
succeeds, and another one when it fails.  This will be used to send out
an
email indicating the status of the build.

I have done this in the past in nant (.NET) which has a built in
property
called nant.onsuccess and one called nant.onfailure.  

Is there something similar in ant, or any does anybody know how to do
this?
*/

There's a nice presentation from Kev Jackson, that has an example
with exec-listener, src included =

http://people.apache.org/~kevj/ossummit/extending-ant.html

That listener is exactly what you're looking for.

Regards, Gilbert

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


Mime
View raw message