Mercurial > hg > truffle
comparison mx/commands.py @ 5103:276e14614531
Added jdkhome command to mx.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 20 Mar 2012 14:43:09 +0100 |
parents | d3f547b08304 |
children | cfdb3c24bd6c |
comparison
equal
deleted
inserted
replaced
5102:09f638813477 | 5103:276e14614531 |
---|---|
382 stdin.write('exit' + newLine) | 382 stdin.write('exit' + newLine) |
383 if logFile: | 383 if logFile: |
384 log.close() | 384 log.close() |
385 return ret | 385 return ret |
386 | 386 |
387 def jdkhome(args, vm=None): | |
388 """prints the JDK directory selected for the 'vm' command""" | |
389 | |
390 build = _vmbuild if _vmSourcesAvailable else 'product' | |
391 print join(_graal_home, 'jdk' + mx.java().version, build) | |
392 | |
387 def build(args, vm=None): | 393 def build(args, vm=None): |
388 """build the VM binary | 394 """build the VM binary |
389 | 395 |
390 The global '--vm' option selects which VM to build. This command also | 396 The global '--vm' option selects which VM to build. This command also |
391 compiles the Graal classes irrespective of what VM is being built. | 397 compiles the Graal classes irrespective of what VM is being built. |
892 'buildvms': [buildvms, '[-options]'], | 898 'buildvms': [buildvms, '[-options]'], |
893 'clean': [clean, ''], | 899 'clean': [clean, ''], |
894 'hsdis': [hsdis, '[att]'], | 900 'hsdis': [hsdis, '[att]'], |
895 'igv' : [igv, ''], | 901 'igv' : [igv, ''], |
896 'intro': [intro, ''], | 902 'intro': [intro, ''], |
903 'jdkhome': [jdkhome, ''], | |
897 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], | 904 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], |
898 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], | 905 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], |
899 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], | 906 'specjvm2008': [specjvm2008, '[VM options|@specjvm2008 options]'], |
900 #'example': [example, '[-v] example names...'], | 907 #'example': [example, '[-v] example names...'], |
901 'gate' : [gate, '[-options]'], | 908 'gate' : [gate, '[-options]'], |