geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r543788 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/JavaEE_TCK/Controller.groovy
Date Sat, 02 Jun 2007 21:37:47 GMT
Author: jdillon
Date: Sat Jun  2 14:37:46 2007
New Revision: 543788

URL: http://svn.apache.org/viewvc?view=rev&rev=543788
Log:
First attempt at generating the reverse test muck

Modified:
    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_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=543788&r1=543787&r2=543788
==============================================================================
--- 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
Sat Jun  2 14:37:46 2007
@@ -52,8 +52,52 @@
         }
         
         //
-        // TODO: Add muck for JavaEE 5 to generate the crap for the reverse tests
-        //       and/or any other generation muck that is needed
+        // For JavaEE 5 we need to generate some special ws muck, so use the 
+        // TCK runtime to execute that so agents can all use the same bits.
         //
+        
+        switch (baseVersion) {
+            case '5':
+                def exec = new ExecCommand(context)
+                exec.executable = 'project/tck-testsuite/runtests'
+                exec.environment['M2_HOME'] = new File('tools/maven').canonicalFile
+                
+                def args = []
+                args << '--nocolor'
+                args << '--offline'
+                
+                // Setup a tmp dir within our workspace
+                def tmpDir = new File('tmp').canonicalFile // Must be canonical
+                tmpDir.mkdirs()
+                args << "-Djava.io.tmpdir=$tmpDir"
+                
+                // Need to pull down the JavaEE RI crapo
+                def repo = new gbuild.config.libraries.CodestationRepository()
+                
+                def getLibrary = { name, version, dir ->
+                    def lib = LibraryManager.getLibrary(repo, name, version)
+                    lib.mirror(dir)
+                    return lib
+                }
+                
+                def workspaceDir = new File("${System.properties['user.home']}/gbuild/workspace/$baseVersion").canonicalFile
+                def riDir = new File(workspaceDir, 'ri')
+                def tckDir = new File(imageDir, 'javaeetck')
+                getLibrary('JavaEE RI/build - 5/Image', '5*', riDir)
+                args << "-Djavaee5.cts.home=$tckDir"
+                args << "-Djavaee5.ri.home=$riDir"
+                
+                args << '--java-version'
+                args << 1.5
+                
+                args << '-Dinterop=true'
+                args << '-Dreverse=true'
+                
+                // Don't really run any tests
+                args << 'no-such-test'
+                
+                exec.execute(args)
+                break
+        }
     }
 }



Mime
View raw message