> From: Conor MacNeill [mailto:[EMAIL PROTECTED]
>
> Paul,
>
> That is an interesting issue and I have given it some
> thought. It is not as
> straight forward as might first appear since Ant can run
> arbitrary Java
> classes using the <java> tag and these classes can access System.out
> directly. Ideally you want to capture that output and direct
> it into Ant's
> event messages, ant that implies that Ant will have some sort
> of System.out
> handler.
>
> You also need to include System.err in that.
>
> Thoughts?

Yeap. I think it may be possible to have ANT put its own streams of System.*
so that all tasks that may be using System.* directly will get their output
diverted. But what I am not so sure we can do that easily is to have
multiple separate channels running at the same time on different threads
since all of them share the same System.* variables.

Although on second thought, there are ThreadContext variables in Java2 maybe
we could use them to achieve that kind of thing.

Jose Alberto
>
>
> ----- Original Message -----
> From: "Paul Hammant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 12, 2001 7:46 PM
> Subject: Re: [ANN] Collecting requirements for Ant2
>
>
> > Here's one:
> >
> > * True detachment from System.in & System.out.  This would
> allow Ant to
> run in virtual shells or
> > as an API from an application.  It would allow multiple
> invokations of
> Ant scrips at the same time
> > in the same VM.
> >
> > -PH
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - Buy the things you want at great prices.
> > http://auctions.yahoo.com/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to