geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r516225 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/ShellExecutor.groovy
Date Thu, 08 Mar 2007 23:25:24 GMT
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
+            }
         }
     }
     



Mime
View raw message