You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2007/03/09 00:25:24 UTC
svn commit: r516225 -
/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy
Author: jdillon
Date: Thu Mar 8 15:25:23 2007
New Revision: 516225
URL: http://svn.apache.org/viewvc?view=rev&rev=516225
Log:
Split up the script into multi-line for better output handling
Modified:
geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy
Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy?view=diff&rev=516225&r1=516224&r2=516225
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy (original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy Thu Mar 8 15:25:23 2007
@@ -39,7 +39,10 @@
def ShellExecutor(String script) {
body << '#!/bin/sh'
if (script) {
- body << script
+ // Split up the script into multi-line for better output handling
+ new StringReader(script).eachLine { line ->
+ body << line
+ }
}
}