# HG changeset patch # User Doug Simon # Date 1334233251 -7200 # Node ID c005ca9437904c5525669e91dd762db1f8c6c99f # Parent 7564f04691167261c225184ad2180d128fe55f3d added -j option to gate command to disable cleaning of Java class files diff -r 7564f0469116 -r c005ca943790 mx/commands.py --- a/mx/commands.py Wed Apr 11 17:47:30 2012 +0200 +++ b/mx/commands.py Thu Apr 12 14:20:51 2012 +0200 @@ -687,6 +687,7 @@ return self parser = ArgumentParser(prog='mx gate'); + parser.add_argument('-j', '--omit-java-clean', action='store_false', dest='cleanJava', help='omit cleaning Java native code') parser.add_argument('-n', '--omit-native-build', action='store_false', dest='buildNative', help='omit cleaning and building native code') parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') parser.add_argument('--jacocout', help='specify the output directory for jacoco report') @@ -698,7 +699,12 @@ try: t = Task('Clean') - clean([] if args.buildNative else ['--no-native']) + cleanArgs = [] + if not args.buildNative: + cleanArgs.append('--no-native') + if not args.cleanJava: + cleanArgs.append('--no-java') + clean(cleanArgs) tasks.append(t.stop()) t = Task('BuildJava')