diff mx/mx_graal.py @ 14744:bf51a92a1bdd

Add new optional method parameter
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 25 Mar 2014 11:50:31 -0700
parents af7b9b9a9a28
children 015f84f0b375
line wrap: on
line diff
--- a/mx/mx_graal.py	Tue Mar 25 11:50:05 2014 -0700
+++ b/mx/mx_graal.py	Tue Mar 25 11:50:31 2014 -0700
@@ -790,7 +790,7 @@
     matches = lambda line: len([a for a in annotations if line == a or line.startswith(a + '(')]) != 0
     return p.find_classes_with_matching_source_line(pkgRoot, matches, includeInnerClasses)
 
-def _extract_VM_args(args, allowClasspath=False, useDoubleDash=False):
+def _extract_VM_args(args, allowClasspath=False, useDoubleDash=False, defaultAllVMArgs=True):
     """
     Partitions a command line into a leading sequence of HotSpot VM options and the rest.
     """
@@ -811,7 +811,10 @@
                 remainder = args[i:]
                 return vmArgs, remainder
 
-    return args, []
+    if defaultAllVMArgs:
+        return args, []
+    else:
+        return [], args
 
 def _run_tests(args, harness, annotations, testfile):