comparison mx/commands.py @ 4657:d4e039a3e083

Print java.exe when execuing "mx vm"
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 21 Feb 2012 13:03:38 +0100
parents 5b0a2334437d
children b06ade6e927c
comparison
equal deleted inserted replaced
4656:c1160de36474 4657:d4e039a3e083
474 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' 474 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product'
475 mx.expand_project_in_args(args) 475 mx.expand_project_in_args(args)
476 if mx.java().debug: 476 if mx.java().debug:
477 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args 477 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args
478 exe = join(_jdk(build), 'bin', mx.exe_suffix('java')) 478 exe = join(_jdk(build), 'bin', mx.exe_suffix('java'))
479 print('Executing VM ' + exe)
479 return mx.run([exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) 480 return mx.run([exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout)
480 481
481 482
482 # Table of unit tests. 483 # Table of unit tests.
483 # Keys are project names, values are package name lists. 484 # Keys are project names, values are package name lists.