> 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.

Ciao,
Gordon



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

Reply via email to