-----Original Message-----
From: p2008 [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to