changeset 5120:37e75b4de85e

Merge
author Christian Haeubl <christian.haeubl@oracle.com>
date Tue, 20 Mar 2012 08:24:04 -0700
parents 352a95d5031c (current diff) 276e14614531 (diff)
children 34518fd74518
files
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Mon Mar 19 16:22:57 2012 -0700
+++ b/mx/commands.py	Tue Mar 20 08:24:04 2012 -0700
@@ -384,6 +384,12 @@
         log.close()
     return ret
     
+def jdkhome(args, vm=None):
+    """prints the JDK directory selected for the 'vm' command"""
+    
+    build = _vmbuild if _vmSourcesAvailable else 'product'
+    print join(_graal_home, 'jdk' + mx.java().version, build)
+
 def build(args, vm=None):
     """build the VM binary
     
@@ -894,6 +900,7 @@
         'hsdis': [hsdis, '[att]'],
         'igv' : [igv, ''],
         'intro': [intro, ''],
+        'jdkhome': [jdkhome, ''],
         'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'],
         'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'],
         'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'],