geronimo-scm mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=506887
Log:
Added getLibraryAsCopy helper

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/LibraryManager.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=506887&r1=506886&r2=506887
==============================================================================
--- 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:55:02 2007
@@ -200,13 +200,11 @@
         // TODO: Need to handle differnt libs for different version of the CTS project
         //
         
-        // Fetch the required libraries
-        def tckLib = LibraryManager.getLibrary('https://gbuild.org/repos/libraries', 'j2ee14-tck',
'1.4.1b')
-        def riLib = LibraryManager.getLibrary('https://gbuild.org/repos/libraries', 'j2ee14-ri',
'1.4.1-b05')
+        // Fetch the required libraries and make copies (prevent unwanted side-effects)
+        def baseURL = 'https://gbuild.org/repos/libraries'
         
-        // Need to make a copy of the TCK and RI for each iteration to prevent unwanted side-effects
-        tckLib = tckLib.copy(new File(targetDir, 'tck'))
-        riLib = riLib.copy(new File(targetDir, 'ri'))
+        LibraryManager.getLibraryAsCopy(baseURL, 'j2ee14-tck', '1.4.1b', 'target/tck')
+        LibraryManager.getLibraryAsCopy(baseURL, 'j2ee14-ri', '1.4.1-b05', 'target/ri')
         
         //
         // TODO: Need to update Maven's settings.xml to pick up these locations, or perhaps

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/LibraryManager.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/LibraryManager.groovy?view=diff&rev=506887&r1=506886&r2=506887
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/LibraryManager.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/library/LibraryManager.groovy
Mon Feb 12 22:55:02 2007
@@ -78,5 +78,15 @@
         
         return lib
     }
+    
+    static Library getLibraryAsCopy(String baseURL, String name, version, String targetPath)
{
+        assert targetPath
+        
+        def lib = getLibrary(baseURL, name, version)
+        
+        def targetDir = new File(targetPath).canonicalFile
+        
+        return lib.copy(targetDir)
+    }
 }
 



Mime
View raw message