geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r480721 - /geronimo/genesis/trunk/build-harness/bin/maven.groovy
Date Wed, 29 Nov 2006 21:36:37 GMT
Author: jdillon
Date: Wed Nov 29 13:36:37 2006
New Revision: 480721

URL: http://svn.apache.org/viewvc?view=rev&rev=480721
Log:
Add --mvnopts flag to set MAVEN_OPTS env

Modified:
    geronimo/genesis/trunk/build-harness/bin/maven.groovy

Modified: geronimo/genesis/trunk/build-harness/bin/maven.groovy
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/build-harness/bin/maven.groovy?view=diff&rev=480721&r1=480720&r2=480721
==============================================================================
--- geronimo/genesis/trunk/build-harness/bin/maven.groovy (original)
+++ geronimo/genesis/trunk/build-harness/bin/maven.groovy Wed Nov 29 13:36:37 2006
@@ -28,8 +28,14 @@
     
     def javaHome = System.getenv("JAVA_HOME")
     
+    def mavenOpts = System.getenv("MAVEN_OPTS")
+    
     int timeout
     
+    def setMavenOptions(options) {
+        mavenOpts = "${mavenOpts}"
+    }
+    
     def setJavaVersion(ver) {
         def tmp = ver.replace(".", "_")
         def dir = System.getenv("JAVA_HOME_${tmp}")
@@ -55,6 +61,10 @@
                     setJavaVersion(iter.next())
                     break
                 
+                case '--mvnopts':
+                    setMavenOptions(iter.next())
+                    break
+                
                 case '--timeout':
                     timeout = Integer.parseInt(iter.next())
                     break
@@ -124,6 +134,10 @@
             }
             
             env(key: "JAVA_HOME", file: javaHome)
+            
+            if (mavenOpts != null) {
+                env(key: "MAVEN_OPTS", value: mavenOpts)
+            }
         }
     }
 }



Mime
View raw message