gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r160101 - in gump/trunk: python/gump/core/run/gumpenv.py test/
Date Mon, 04 Apr 2005 21:31:24 GMT
Author: ajack
Date: Mon Apr  4 14:31:23 2005
New Revision: 160101

URL: http://svn.apache.org/viewcvs?view=rev&rev=160101
Log:
1) Default java to $JAVA_HOME/bin/java (if JAVA_HOME set).
2) Add test data to .svn:ignore

Modified:
    gump/trunk/python/gump/core/run/gumpenv.py
    gump/trunk/test/   (props changed)

Modified: gump/trunk/python/gump/core/run/gumpenv.py
URL: http://svn.apache.org/viewcvs/gump/trunk/python/gump/core/run/gumpenv.py?view=diff&r1=160100&r2=160101
==============================================================================
--- gump/trunk/python/gump/core/run/gumpenv.py (original)
+++ gump/trunk/python/gump/core/run/gumpenv.py Mon Apr  4 14:31:23 2005
@@ -90,6 +90,11 @@
         self.javaCommand = 'java'
         self.javacCommand = 'javac'
         
+        # Default to $JAVA_HOME/bin/java, can be overridden with $JAVA_CMD.
+        if os.environ.has_key('JAVA_HOME'):        
+            self.javaCommand  = os.path.join(os.environ['JAVA_HOME'],'bin',self.javaCommand)
+            self.addInfo('JAVA_CMD set to $JAVA_HOME/bin/java = ' + self.javaCommand )  
          
+        
         # Timezone and offset from UTC
         self.timezone = time.tzname
         self.timezoneOffset = time.timezone

Propchange: gump/trunk/test/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Apr  4 14:31:23 2005
@@ -0,0 +1,2 @@
+
+gump



Mime
View raw message