# HG changeset patch # User Christian Haeubl # Date 1332257044 25200 # Node ID 37e75b4de85e5c56bfbc27e8d89c9019486007b3 # Parent 352a95d5031c6e0fecf00461a9f70c4152ff589b# Parent 276e146145310f157045f0fe47c91b4d741cc1de Merge diff -r 352a95d5031c -r 37e75b4de85e mx/commands.py --- 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]'],