Thanks for this info! It seems the exec listener is the most flexible solution. Not quite as simple as the hooks offered in nant, but it should do the job. Thanks.
Rebhan, Gilbert wrote: > > > > -----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] > > > -- View this message in context: http://www.nabble.com/How-to-run-an-ant-target-on-success-failed-build-tp18600235p18615045.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]