From b38b49ae35e148f9dab5d26251726c8d007b53bd Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Fri, 30 Oct 2009 10:19:13 +0100 Subject: Better fix for NAR-1 and runCommand --- src/main/java/org/apache/maven/plugin/nar/NarUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/apache/maven/plugin/nar/NarUtil.java b/src/main/java/org/apache/maven/plugin/nar/NarUtil.java index b663d95..c7edbc7 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarUtil.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarUtil.java @@ -479,6 +479,8 @@ public class NarUtil outputGobbler.start(); process.waitFor(); dbg.println( "ExitValue: " + process.exitValue() ); + errorGobbler.join( 5000 ); + outputGobbler.join( 5000 ); return process.exitValue(); } catch ( Throwable e ) -- cgit v1.2.3