----- Original Message ----- From: "Gordon Tyler" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 8:46 AM Subject: Re: Programmatically stopping build
> > Without patching Ant, there is no way. Suggestions how to make Ant > > easier to embed that way? > > As Steve Loughran suggested, perhaps a "cancelBuild" method could be added > to Project which sets a flag and various points in the build code path check > that flag and throw a BuildCancelledException if it is set. > > One problem with this is that Tasks themselves would have to be modified to > also check this flag so that long-running Tasks don't prevent the build from > being cancelled until they're completed. Unfortunately, this fails for tasks > like Javac where most of the time is spent in the Sun javac code. I wasnt going to think about that; way too complicated. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
