commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Takahiro <fat...@googlemail.com>
Subject [exec] PumpStreamHandler doesn't flush sub-process's std-in.
Date Mon, 07 Nov 2011 07:55:45 GMT
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


Mime
View raw message