ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject Re: [ANN] Collecting requirements for Ant2
Date Mon, 12 Mar 2001 12:27:57 GMT
From: "Jose Alberto Fernandez" <j_a_fernandez@yahoo.com>
>
> 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.
>

I guess you are referring to ThreadLocal. Pete Donald suggested creating an
output stream that used ThreadLocal to effectively demux the System.out
into the output for each thread. I believe that is workable.

Conor



---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org


Mime
View raw message