geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r502154 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild: config/projects/Geronimo_CTS/Controller.groovy system/commands/MavenCommand.groovy
Date Thu, 01 Feb 2007 08:06:13 GMT
Author: jdillon
Date: Thu Feb  1 00:06:13 2007
New Revision: 502154

URL: http://svn.apache.org/viewvc?view=rev&rev=502154
Log:
Helper to set maven --offline

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/commands/MavenCommand.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=502154&r1=502153&r2=502154
==============================================================================
--- 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
Thu Feb  1 00:06:13 2007
@@ -282,6 +282,7 @@
         // Invoke maven to generate the report
         def maven = new MavenCommand(context)
         maven.pom = 'project/tck-testsuite/pom.xml'
+        maven.offline = true
         
         //
         // TODO: Need to include some detail about the webcontainer that we tested,
@@ -289,7 +290,6 @@
         //
         
         def args = []
-        args << '--offline'
         args << 'j2eetck:generate-report'
         args << "-DsectionsFile=$sections"
         args << "-DsummariesDirectory=$summariesDir"

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/MavenCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/MavenCommand.groovy?view=diff&rev=502154&r1=502153&r2=502154
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/MavenCommand.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/commands/MavenCommand.groovy
Thu Feb  1 00:06:13 2007
@@ -38,6 +38,8 @@
     
     def pom = 'project/pom.xml'
     
+    boolean offline = false
+    
     def MavenCommand(context) {
         super(context)
     }
@@ -103,6 +105,10 @@
                 
                 arg(value: '--batch-mode')
                 arg(value: '--errors')
+                
+                if (offline) {
+                    arg(value: '--offline')
+                }
                 
                 arg(value: '--file')
                 arg(file: pom)



Mime
View raw message