Mercurial > hg > graal-compiler
changeset 5232:c005ca943790
added -j option to gate command to disable cleaning of Java class files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 12 Apr 2012 14:20:51 +0200 |
parents | 7564f0469116 |
children | efbb1e33e2f3 |
files | mx/commands.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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')