# HG changeset patch # User Roland Schatz # Date 1432630399 -7200 # Node ID 2fe8729dd813a95ba11ca0a44d19f23cc4517ab6 # Parent bb51b9a142b3f07d0951f48b7e94e7c96b06804a mx gate: add option to skip ideclean diff -r bb51b9a142b3 -r 2fe8729dd813 mx/mx_graal.py --- a/mx/mx_graal.py Mon May 25 12:26:53 2015 +0200 +++ b/mx/mx_graal.py Tue May 26 10:53:19 2015 +0200 @@ -1752,6 +1752,7 @@ 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-clean', action='store_false', dest='cleanNative', help='omit cleaning and building native code') + parser.add_argument('-i', '--omit-ide-clean', action='store_false', dest='cleanIde', help='omit cleaning the ide project files') parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') parser.add_argument('-t', '--task-filter', help='comma separated list of substrings to select subset of tasks to be run') parser.add_argument('--jacocout', help='specify the output directory for jacoco report') @@ -1784,10 +1785,11 @@ clean(cleanArgs) _clean() - with Task('IDEConfigCheck', tasks): + with Task('IDEConfigCheck', tasks) as t: if t: - mx.ideclean([]) - mx.ideinit([]) + if args.cleanIde: + mx.ideclean([]) + mx.ideinit([]) eclipse_exe = mx.get_env('ECLIPSE_EXE') if eclipse_exe is not None: