Author: bdelacretaz
Date: Mon Feb 14 12:25:18 2011
New Revision: 1070468

URL: http://svn.apache.org/viewvc?rev=1070468&view=rev
Log:
STANBOL-84 - consume the child process output

Modified:
    
incubator/stanbol/trunk/commons/testing/jarexec/src/main/java/org/apache/stanbol/commons/testing/jarexec/JarExecutor.java

Modified: 
incubator/stanbol/trunk/commons/testing/jarexec/src/main/java/org/apache/stanbol/commons/testing/jarexec/JarExecutor.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/testing/jarexec/src/main/java/org/apache/stanbol/commons/testing/jarexec/JarExecutor.java?rev=1070468&r1=1070467&r2=1070468&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/commons/testing/jarexec/src/main/java/org/apache/stanbol/commons/testing/jarexec/JarExecutor.java
 (original)
+++ 
incubator/stanbol/trunk/commons/testing/jarexec/src/main/java/org/apache/stanbol/commons/testing/jarexec/JarExecutor.java
 Mon Feb 14 12:25:18 2011
@@ -26,6 +26,7 @@ import org.apache.commons.exec.DefaultEx
 import org.apache.commons.exec.ExecuteException;
 import org.apache.commons.exec.ExecuteResultHandler;
 import org.apache.commons.exec.Executor;
+import org.apache.commons.exec.PumpStreamHandler;
 import org.apache.commons.exec.ShutdownHookProcessDestroyer;
 import org.apache.commons.exec.util.StringUtils;
 
@@ -144,6 +145,7 @@ public class JarExecutor {
         cl.addArgument("-p");
         cl.addArgument(String.valueOf(serverPort));
         info("Executing " + cl);
+        e.setStreamHandler(new PumpStreamHandler());
         e.setProcessDestroyer(new ShutdownHookProcessDestroyer());
         e.execute(cl, h);
     }


Reply via email to