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.

    Erik


----- Original Message -----
From: "Kurien Mathew" <[EMAIL PROTECTED]>
To: "ant user" <[EMAIL PROTECTED]>
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
listener
> written in Java.
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to