# HG changeset patch # User Doug Simon # Date 1332250989 -3600 # Node ID 276e146145310f157045f0fe47c91b4d741cc1de # Parent 09f638813477a6d01e7f96ae0460e5caa2d4b185 Added jdkhome command to mx. diff -r 09f638813477 -r 276e14614531 mx/commands.py --- a/mx/commands.py Mon Mar 19 13:33:49 2012 +0100 +++ b/mx/commands.py Tue Mar 20 14:43:09 2012 +0100 @@ -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]'],