geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r507759 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/ProjectController.groovy
Date Thu, 15 Feb 2007 00:44:40 GMT
Author: jdillon
Date: Wed Feb 14 16:44:39 2007
New Revision: 507759

URL: http://svn.apache.org/viewvc?view=rev&rev=507759
Log:
Add watch for all actions

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

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/ProjectController.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/ProjectController.groovy?view=diff&rev=507759&r1=507758&r2=507759
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/ProjectController.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/ProjectController.groovy
Wed Feb 14 16:44:39 2007
@@ -23,6 +23,8 @@
 
 package gbuild.system
 
+import org.apache.commons.lang.time.StopWatch
+
 /**
  * ???
  */
@@ -47,11 +49,16 @@
     def dispatch(String name) {
         assert name
         
+        def watch = new StopWatch()
+        watch.start()
+        
         def action = this[name]
         
-        log.info("Dispatching action '${name}' to: ${action}")
+        log.info "Dispatching action '${name}' to: ${action}"
         
         action()
+        
+        log.info "Action completed in: $watch"
     }
     
     protected def fail(reason) {



Mime
View raw message