comparison mx/commands.py @ 4324:b0aa4a52b89c

Added support for project specs in classpath.
author Doug Simon <doug.simon@oracle.com>
date Thu, 26 Jan 2012 10:54:23 +0100
parents 600cbdce9805
children d13bfce7b3dd
comparison
equal deleted inserted replaced
4323:df5547057954 4324:b0aa4a52b89c
367 367
368 def vm(args, vm='-graal', nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None): 368 def vm(args, vm='-graal', nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None):
369 """run the GraalVM""" 369 """run the GraalVM"""
370 370
371 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' 371 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product'
372 mx.expand_project_in_args(args)
372 if mx.java().debug: 373 if mx.java().debug:
373 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args 374 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args
374 exe = join(_jdk(build), 'bin', mx.exe_suffix('java')) 375 exe = join(_jdk(build), 'bin', mx.exe_suffix('java'))
375 return mx.run([exe, vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) 376 return mx.run([exe, vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout)
376 377
506 total.abort(str(e)) 507 total.abort(str(e))
507 508
508 total.stop() 509 total.stop()
509 510
510 def bench(args): 511 def bench(args):
511 """run benchmarks and parse their ouput for results 512 """run benchmarks and parse their output for results
512 513
513 Results are JSON formated : {group : {benchmark : score}}.""" 514 Results are JSON formated : {group : {benchmark : score}}."""
514 resultFile = None 515 resultFile = None
515 if '-resultfile' in args: 516 if '-resultfile' in args:
516 index = args.index('-resultfile') 517 index = args.index('-resultfile')