ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
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 [] 
Sent: Wednesday, July 23, 2008 12:35 AM
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
succeeds, and another one when it fails.  This will be used to send out
email indicating the status of the build.

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

Is there something similar in ant, or any does anybody know how to do

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

That listener is exactly what you're looking for.

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message