Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Developers List »

Re: Suppress redirector input stream?

Matt Benson

2008-01-31

Replies: Find Java Web Hosting

Author LoginPost Reply

--- Jeffrey E Care <carej@(protected):

> 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@(protected)
> IBM WebSphere Application Server
> WAS Release Engineering
>
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@(protected)
> For additional commands, e-mail:
> dev-help@(protected)
>
>



   ____________________________________________________________________________________
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@(protected)
For additional commands, e-mail: dev-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.