You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Takahiro <fa...@googlemail.com> on 2011/11/07 08:55:45 UTC

[exec] PumpStreamHandler doesn't flush sub-process's std-in.

Hi,

I have the same problem described below.

Trouble providing multiple input to a Command using Apache Commons
Exec and extracting output
http://stackoverflow.com/questions/7113007/trouble-providing-multiple-input-to-a-command-using-apache-commons-exec-and-extr

The problem is that PumpStreamHandler flushes OutputStream fed to
sub-process's std-in only when given InputStream is System.in.
PumpStreamHandler.java line 130
http://svn.apache.org/viewvc/commons/proper/exec/tags/EXEC_1_1/src/main/java/org/apache/commons/exec/PumpStreamHandler.java?view=markup

I think it should be user-selectable whether OutputStream is flushed or not.
What do you think?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org