ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <>
Subject Ant 1.6.1 Converting Errors To Exceptions...Good|Bad?
Date Wed, 18 Feb 2004 22:21:05 GMT
Ant Developers,

I've come across (ok stumbled across) an implementation
detail of the new Ant 1.6.1 "keepGoing" mode. The way the
code is currently written Ant keeps going even if an Error
(not an Exception) occurs. This strikes me as very risky
as it violates the expected response of the runtime to an
Error. The code could be easily switched to capture
all Exceptions instead of Throwables. Moreover, when it does
capture an error, Ant effectively masks the serious Error
with a generic BuildException (which it really isn't).
Unless you run Ant in debug mode you'd never actually see
the root cause (in the BuildException's stack dump).

Is this a bug or a "working as designed" feature of Ant?


The Wabbit 

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

View raw message