geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r506883 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild: config/projects/Geronimo_CTS/Controller.groovy system/library/Library.groovy
Date Tue, 13 Feb 2007 06:29:51 GMT
Author: jdillon
Date: Mon Feb 12 22:29:50 2007
New Revision: 506883

URL: http://svn.apache.org/viewvc?view=rev&rev=506883
Log:
Add some watches to time how long this stuff takes

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy?view=diff&rev=506883&r1=506882&r2=506883
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
Mon Feb 12 22:29:50 2007
@@ -209,7 +209,8 @@
         riLib = riLib.copy(new File(targetDir, 'ri'))
         
         //
-        // TODO: Need to update Maven's settings.xml to pick up these locations
+        // TODO: Need to update Maven's settings.xml to pick up these locations, or perhaps
+        //       properties define will take priority instead?
         //
         
         // Setup and execute runtests

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy?view=diff&rev=506883&r1=506882&r2=506883
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/Library.groovy
Mon Feb 12 22:29:50 2007
@@ -25,6 +25,8 @@
 
 import gbuild.system.LogSupport
 
+import org.apache.commons.lang.time.StopWatch
+
 /**
  * Access to a library
  */
@@ -54,6 +56,9 @@
         assert dir
         assert perm
         
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Changing '$perm' for $dir"
         
         //
@@ -65,6 +70,8 @@
             arg(value: perm)
             arg(file: dir)
         }
+        
+        log.info "Chmod completed in $watch"
     }
     
     def lock() {
@@ -79,6 +86,9 @@
      * Check out the library.
      */
     def checkout() {
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Checking out library from: $sourceURL"
         
         assert !exists()
@@ -91,6 +101,8 @@
             arg(value: sourceURL)
             arg(file: baseDir)
         }
+        
+        log.info "Checkout completed in $watch"
     }
     
     /**
@@ -99,6 +111,9 @@
     def commit(String message) {
         assert message
         
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Commiting changes; message: $message"
         
         assert exists()
@@ -110,12 +125,17 @@
             arg(value: message)
             arg(file: baseDir)
         }
+        
+        log.info "Commit completed in $watch"
     }
     
     /**
      * Check if the library is the latest revision
      */
     boolean isLatest() {
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Checking for changes in: $baseDir"
         
         assert exists()
@@ -140,6 +160,8 @@
         def rcommit = lastCommit(sourceURL)
         def lcommit = lastCommit(baseDir)
         
+        log.info "Is latest check completed in $watch"
+        
         return rcommit.'@revision' == lcommit.'@revision'
     }
     
@@ -147,6 +169,9 @@
      * Update the library.
      */
     def update() {
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Updating library in: $baseDir"
         
         assert exists()
@@ -157,12 +182,17 @@
             arg(value: '--non-interactive')
             arg(file: baseDir)
         }
+        
+        log.info "Update completed in $watch"
     }
     
     /**
      * Remove the library (local workspace)
      */
     def remove() {
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Removing library from: $baseDir"
         
         assert exists()
@@ -176,6 +206,8 @@
             arg(value: '-rf')
             arg(file: baseDir)
         }
+        
+        log.info "Remove completed in $watch"
     }
     
     /**
@@ -184,6 +216,9 @@
     Library copy(File targetDir, String perms) {
         assert targetDir
         
+        def watch = new StopWatch()
+        watch.start()
+        
         log.info "Copying library to: $targetDir; w/perms: $perms"
         
         assert exists()
@@ -212,6 +247,8 @@
         // Return new library instance, which is rooted to new dir
         def lib = new Library(sourceURL, targetDir)
         lib.isCopy = true
+        
+        log.info "Copy completed in $watch"
         
         return lib
     }



Mime
View raw message