Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 13266:78ed696884b3
fixed regression in pylint command (exit code must be non-zero if at least one warning/error was found)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 09 Dec 2013 15:20:00 +0100 |
parents | e709633d87c6 |
children | 9c3c915b5f56 |
comparison
equal
deleted
inserted
replaced
13265:2d76d0c85345 | 13266:78ed696884b3 |
---|---|
2249 | 2249 |
2250 env['PYTHONPATH'] = pythonpath | 2250 env['PYTHONPATH'] = pythonpath |
2251 | 2251 |
2252 for pyfile in pyfiles: | 2252 for pyfile in pyfiles: |
2253 log('Running pylint on ' + pyfile + '...') | 2253 log('Running pylint on ' + pyfile + '...') |
2254 run(['pylint', '--reports=n', '--rcfile=' + rcfile, pyfile], env=env, nonZeroIsFatal=False) | 2254 run(['pylint', '--reports=n', '--rcfile=' + rcfile, pyfile], env=env) |
2255 | 2255 |
2256 def archive(args): | 2256 def archive(args): |
2257 """create jar files for projects and distributions""" | 2257 """create jar files for projects and distributions""" |
2258 parser = ArgumentParser(prog='mx archive') | 2258 parser = ArgumentParser(prog='mx archive') |
2259 parser.add_argument('names', nargs=REMAINDER, metavar='[<project>|@<distribution>]...') | 2259 parser.add_argument('names', nargs=REMAINDER, metavar='[<project>|@<distribution>]...') |
2839 if timestamp.isOlderThan(suite.import_timestamp()): | 2839 if timestamp.isOlderThan(suite.import_timestamp()): |
2840 return False | 2840 return False |
2841 # Assume that any mx change might imply changes to the generated IDE files | 2841 # Assume that any mx change might imply changes to the generated IDE files |
2842 if timestamp.isOlderThan(__file__): | 2842 if timestamp.isOlderThan(__file__): |
2843 return False | 2843 return False |
2844 | 2844 |
2845 eclipseSettingsDir = join(suite.mxDir, 'eclipse-settings') | 2845 eclipseSettingsDir = join(suite.mxDir, 'eclipse-settings') |
2846 if exists(eclipseSettingsDir): | 2846 if exists(eclipseSettingsDir): |
2847 for name in os.listdir(eclipseSettingsDir): | 2847 for name in os.listdir(eclipseSettingsDir): |
2848 path = join(eclipseSettingsDir, name) | 2848 path = join(eclipseSettingsDir, name) |
2849 if timestamp.isOlderThan(path): | 2849 if timestamp.isOlderThan(path): |
2850 return False | 2850 return False |
2851 return True | 2851 return True |
2852 | 2852 |
2853 def _eclipseinit_suite(args, suite, buildProcessorJars=True, refreshOnly=False): | 2853 def _eclipseinit_suite(args, suite, buildProcessorJars=True, refreshOnly=False): |
2854 timestamp = TimeStampFile(join(suite.mxDir, 'eclipseinit.timestamp')) | 2854 timestamp = TimeStampFile(join(suite.mxDir, 'eclipseinit.timestamp')) |
2855 if refreshOnly and not timestamp.exists(): | 2855 if refreshOnly and not timestamp.exists(): |
2856 return | 2856 return |