geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r530136 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/ExecCommand.groovy
Date Wed, 18 Apr 2007 19:36:48 GMT
Author: jdillon
Date: Wed Apr 18 12:36:47 2007
New Revision: 530136

URL: http://svn.apache.org/viewvc?view=rev&rev=530136
Log:
Add debug of command-line which will be executed so we can log it for manual execution/debugging
of build muck

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/ExecCommand.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/ExecCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/ExecCommand.groovy?view=diff&rev=530136&r1=530135&r2=530136
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/ExecCommand.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/ExecCommand.groovy
Wed Apr 18 12:36:47 2007
@@ -46,6 +46,23 @@
         log.info "Executable: $executable"
         log.info "Args: $args"
         
+        // Make a string for the complete command-line we execute to make it easy
+        // to run manuall if needed
+        
+        def cl = new StringBuffer()
+        
+        environment.each { key, value ->
+            cl << "$key='$value' "
+        }
+        
+        cl << executable
+        
+        args.each {
+            cl << " '$it'"
+        }
+        
+        log.info "Command line: $cl"
+        
         ant.chmod(perm: 'u+x', file: executable)
         
         separator()



Mime
View raw message