ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Notification of failed builds
Date Sun, 25 Nov 2001 00:53:20 GMT
It certainly is technically possible, but this has been rejected by the dev
folks, for reasons like: what happens if the failure target fails?

A listener is the right place, currently, for such things.  Eventually it
will be possible to attach a listener from within the build file (and you
'almost' can already with <record>. but not quite like what you desire).

If you wanted to get real tricky, you could create a listener that upon
failure fired a failure target!  :)  But you'd have to deal with whatever
potentially ugly issues could come up from doing such a thing and I'm not
sure what kinds of things get destroyed before the listener gets notified of
a failure.


----- Original Message -----
From: "Kurien Mathew" <>
To: "ant user" <>
Sent: Saturday, November 24, 2001 3:14 PM
Subject: Notification of failed builds

> Would it be possible to have Ant execute a user-specified target whenever
> build fails? This I guess would be simpler than having to attach a
> written in Java.
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

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

View raw message