On 11/9/05, Craeg Strong <[EMAIL PROTECTED]> wrote:
> Cool!  Continuing this thought experiment, what about enhancing
> BuildListener like so:

Changing an interface is a no-no of course.

> The issue with these events is the same one you normally have with
> exceptions.

I can't comment on your approach, since I don't think I understand it.

> Alternatively, we don't worry about the loss of context,
> relying on the surrounding taskStarted/taskFinished events to provide
> the context-- as long as there are not multiple threads going on.

This is precisely what I proposed to do in my design #2 based on a listener.

So far I think I like #1 best, i.e. adding a few overrides to the log
methods in ProjectComponent to support an additional category. I'm not
sure we'd need hierarchical categories a la Log4J or
java.util.logging. Makes it more complex, and we don't want to slow
down Ant's logging.  --DD

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

Reply via email to