# HG changeset patch # User Doug Simon # Date 1334923857 -7200 # Node ID a549662f6c6f9e3523bc940dedced6d2c7a4357a # Parent 38feba3e8526138b5d97671890fee50bd99f8d55 added 'vmg' and 'vmfg' commands to mx as convenient aliases for running the debug and fastdebug builds of the selected VM diff -r 38feba3e8526 -r a549662f6c6f mx/commands.py --- a/mx/commands.py Thu Apr 19 22:57:53 2012 +0200 +++ b/mx/commands.py Fri Apr 20 14:10:57 2012 +0200 @@ -547,6 +547,14 @@ else: file(timestampFile, 'a') +def vmg(args): + """run the debug build of VM selected by the '--vm' option""" + return vm(args, vmbuild='debug') + +def vmfg(args): + """run the fastdebug build of VM selected by the '--vm' option""" + return vm(args, vmbuild='fastdebug') + def vm(args, vm=None, nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None): """run the VM selected by the '--vm' option""" @@ -988,7 +996,9 @@ 'unittest' : [unittest, '[filters...]'], 'jtt' : [jtt, '[filters...]'], 'jacocoreport' : [jacocoreport, '[output directory]'], - 'vm': [vm, '[-options] class [args...]'] + 'vm': [vm, '[-options] class [args...]'], + 'vmg': [vmg, '[-options] class [args...]'], + 'vmfg': [vmfg, '[-options] class [args...]'] } mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])