geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r543004 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/svn/LibraryImpl.groovy
Date Thu, 31 May 2007 00:59:58 GMT
Author: jdillon
Date: Wed May 30 17:59:57 2007
New Revision: 543004

URL: http://svn.apache.org/viewvc?view=rev&rev=543004
Log:
Re-enable update support, though since we are using svn export we have to co again

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/svn/LibraryImpl.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/svn/LibraryImpl.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/svn/LibraryImpl.groovy?view=diff&rev=543004&r1=543003&r2=543004
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/svn/LibraryImpl.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/svn/LibraryImpl.groovy
Wed May 30 17:59:57 2007
@@ -122,9 +122,6 @@
         return -1
     }
     
-    /**
-     * Check out the library.
-     */
     void checkout() {
         log.info "Checking out library from: $sourceURL"
         
@@ -148,9 +145,6 @@
         file << rev
     }
     
-    /**
-     * Check if the library is the latest revision
-     */
     boolean isLatest() {
         log.info "Checking for changes in: $baseDir"
         
@@ -171,29 +165,9 @@
         return rcommit == lcommit
     }
     
-    /**
-     * Update the library.
-     */
     void update() {
-        if (true) {
-            throw new Exception("This won't work anymore... pending massive update to change
how this works")
-        }
-        
-        log.info "Updating library in: $baseDir"
-        
-        assert exists()
-        
-        //
-        // HACK: If dirty, then cleanup first
-        //
-        
-        if (dirty) {
-            svn('cleanup', [ baseDir ])
-            dirty = false
-        }
-        
-        // Update the local copy
-        svn('update', [ baseDir ])
+        exec('rm', [ '-rf', baseDir ])
+        checkout()
     }
 }
 



Mime
View raw message