gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r565233 - /gump/trunk/python/gump/core/language/java.py
Date Mon, 13 Aug 2007 04:27:03 GMT
Author: bodewig
Date: Sun Aug 12 21:26:58 2007
New Revision: 565233

URL: http://svn.apache.org/viewvc?view=rev&rev=565233
Log:
Add a new environment variable that injects JVM args for every Java builder

Modified:
    gump/trunk/python/gump/core/language/java.py

Modified: gump/trunk/python/gump/core/language/java.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/language/java.py?view=diff&rev=565233&r1=565232&r2=565233
==============================================================================
--- gump/trunk/python/gump/core/language/java.py (original)
+++ gump/trunk/python/gump/core/language/java.py Sun Aug 12 21:26:58 2007
@@ -24,6 +24,7 @@
 
 from gump import log
 
+import os
 import os.path
 
 import gump.core.run.gumprun
@@ -53,7 +54,14 @@
         Get JVM arguments for a project 
         
         """
-        return project.jvmargs
+        args = project.jvmargs
+        if os.environ.has_key('GUMP_JAVA_ARGS'):
+            args = gump.util.process.command.Parameters()
+            for p in os.environ['GUMP_JAVA_ARGS'].split(' '):
+                args.addParameter(p);
+            for p in project.jvmargs.items() :
+                args.addParameterObject(p);
+        return args
        
     def getClasspaths(self,project,debug=False):
         """
@@ -66,7 +74,6 @@
         
         # Return them simple/flattened
         return ( classpath.getFlattened(), bootclasspath.getFlattened() )
-
    
     def getBaseClasspath(self):
         """



Mime
View raw message