comparison mx/commands.py @ 4660:b06ade6e927c

Fixed Ctrl+C for Windows in mx.py
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 21 Feb 2012 19:30:33 +0100
parents d4e039a3e083
children e136f2d0d002
comparison
equal deleted inserted replaced
4659:bb90e461a139 4660:b06ade6e927c
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)
480 return mx.run([exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) 479 return mx.run([exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout)
481 480
482 481
483 # Table of unit tests. 482 # Table of unit tests.
484 # Keys are project names, values are package name lists. 483 # Keys are project names, values are package name lists.