ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: onFailure
Date Mon, 29 Jan 2001 15:40:41 GMT
Peter Donald <> wrote:

> what if we extended BuildListener so that it had the callbacks
> void taskFailed( BuildException be );
> void taskError( Throwable t );

Yep, much less cumbersome than checking for a thrown exception in
buildFinished. +1

> Now the default implementation would just rethrow the exception and
> thinks would operate 100% like they do now but other implementations
> could choose to "consume" the error and keep going on. Just a
> thought - thoughts ?

Sounds OK to me. 

Not exactly the type of functionality one would expect from a pure
Listener, but as we move towards a "FrontEnd" or something this seems
the appropriate place.


View raw message