geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r543021 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects: JavaEE_RI/Controller.groovy JavaEE_TCK/Controller.groovy
Date Thu, 31 May 2007 02:17:19 GMT
Author: jdillon
Date: Wed May 30 19:17:18 2007
New Revision: 543021

URL: http://svn.apache.org/viewvc?view=rev&rev=543021
Log:
Add RI muck

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_RI/Controller.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_TCK/Controller.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_RI/Controller.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_RI/Controller.groovy?view=diff&rev=543021&r1=543020&r2=543021
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_RI/Controller.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_RI/Controller.groovy
Wed May 30 19:17:18 2007
@@ -32,9 +32,23 @@
  */
 class Controller extends gbuild.system.ProjectController
 {
+    def getBaseVersion() {
+        def version = params.require('version')
+        def matcher = version =~ /([^-]*)-(.*)/
+        return matcher[0][1]
+    }
+    
     def build = {
-        def maven = new MavenCommand(context)
-        maven.javaVersion = 1.5
-        maven.execute()
+        def imageDir = new File('target/image').canonicalFile
+        imageDir.mkdirs()
+        
+        def distributionsDir = new File('project/src/main/distributions').canonicalFile
+        def javaeeTckZip = new File(distributionsDir, 'javaee-ri.zip')
+        
+        ant.exec(executable: 'unzip', failonerror: true) {
+            arg(file: javaeeTckZip)
+            arg(value: '-d')
+            arg(file: imageDir)
+        }
     }
 }

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_TCK/Controller.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_TCK/Controller.groovy?view=diff&rev=543021&r1=543020&r2=543021
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_TCK/Controller.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_TCK/Controller.groovy
Wed May 30 19:17:18 2007
@@ -32,6 +32,12 @@
  */
 class Controller extends gbuild.system.ProjectController
 {
+    def getBaseVersion() {
+        def version = params.require('version')
+        def matcher = version =~ /([^-]*)-(.*)/
+        return matcher[0][1]
+    }
+    
     def build = {
         def imageDir = new File('target/image').canonicalFile
         imageDir.mkdirs()



Mime
View raw message