diff mx/commands.py @ 5032:e2de9649f0a9

Integrated mxtool updates from Maxine project.
author Doug Simon <doug.simon@oracle.com>
date Tue, 06 Mar 2012 12:09:50 +0100
parents 7ccdae96e98a
children d7ecce178ad2
line wrap: on
line diff
--- a/mx/commands.py	Mon Mar 05 18:22:31 2012 -0800
+++ b/mx/commands.py	Tue Mar 06 12:09:50 2012 +0100
@@ -484,8 +484,8 @@
         
     build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product'
     mx.expand_project_in_args(args)  
-    if mx.java().debug:
-        args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'] + args
+    if mx.java().debug_port is not None:
+        args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(mx.java().debug_port)] + args
     if _jacoco == 'on' or _jacoco == 'append':
         jacocoagent = mx.library("JACOCOAGENT", True)
         agentOptions = {