ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26852] - Exec task blocks when spawned
Date Wed, 11 Feb 2004 17:37:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26852>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26852

Exec task blocks when spawned





------- Additional Comments From daniel.spilker@hamburg.de  2004-02-11 17:37 -------
I hacked a patch for src/main/org/apache/tools/ant/taskdefs/Execute.java which
pumps stdout and stderr of the spawned process to a dummy OutputStream. The
stdin of process is closed. Works fine. 

Also look at the javadoc of java.lang.Process which recommends this behaviour.

When the Ant JVM exits, the other process might get some kind of "IOExecption"
since the pipe between the processed is closed. But this depends on the OS.

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


Mime
View raw message