ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Suppress redirector input stream?
Date Thu, 31 Jan 2008 16:58:26 GMT

--- Jeffrey E Care <carej@us.ibm.com> wrote:

> Is there a way to tell redirector to not pump stdin
> to a forked process?
> 

Hi Jeff--I think you should be able to do:

<redirector inputstring="" ... />

or, fancier:

<condition property="dev.null" value="/dev/null">
  <os family="unix" />
</condition>

<condition property="dev.null" value="NUL">
  <os family="windows" />
</condition>

<redirector input="${dev.null}" ... />

Would any of this help?

-Matt

> In the WAS build we have to fork quite a few times
> (either with <java 
> fork="true"> or with <exec>); these forked processes
> do not expect any 
> input on their stdin, but I couldn't find a way to
> tell redirector to not 
> pump Ant's stdin to the forked processes. I took a
> thread dump and noticed 
> that we have a ton of threads that are blocked in
> StreamPumper.run, 
> presumably waiting to read input that isn't coming.
> 
> I've been able to hack a solution, but is there any
> official way of doing 
> this?
> 
>
____________________________________________________________________________________________
> 
> 
> Jeffrey E. (Jeff) Care 
> carej@us.ibm.com 
> IBM WebSphere Application Server 
> WAS Release Engineering 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



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


Mime
View raw message