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/02/23 05:30:17 UTC
svn commit: r510811 -
/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/BastardChildReaper.groovy
Author: jdillon
Date: Thu Feb 22 20:30:17 2007
New Revision: 510811
URL: http://svn.apache.org/viewvc?view=rev&rev=510811
Log:
Use the ShellExecutor
Modified:
geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/BastardChildReaper.groovy
Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/BastardChildReaper.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/BastardChildReaper.groovy?view=diff&rev=510811&r1=510810&r2=510811
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/BastardChildReaper.groovy (original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/BastardChildReaper.groovy Thu Feb 22 20:30:17 2007
@@ -136,14 +136,8 @@
private void debugSpawn(String script) {
assert script
- def file = File.createTempFile('reaper', '.sh')
- file.deleteOnExit()
- file.write("#!/bin/sh\n$script\n")
-
- ant.chmod(perm: 'u+x', file: file)
- ant.exec(executable: file, failonerror: false)
-
- file.delete()
+ def shell = new ShellExecutor(script)
+ shell.execute()
}
def reap() {