Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 14777:10c6700908ef
mx: removed use of exclusion filter files from findbugs command
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 26 Mar 2014 22:20:23 +0100 |
parents | 78343531acc7 |
children | aaecb0ca0c7d |
comparison
equal
deleted
inserted
replaced
14776:07dd21c7d533 | 14777:10c6700908ef |
---|---|
1699 assert exists(findbugsJar) | 1699 assert exists(findbugsJar) |
1700 nonTestProjects = [p for p in mx.projects() if not p.name.endswith('.test') and not p.name.endswith('.jtt')] | 1700 nonTestProjects = [p for p in mx.projects() if not p.name.endswith('.test') and not p.name.endswith('.jtt')] |
1701 outputDirs = [p.output_dir() for p in nonTestProjects] | 1701 outputDirs = [p.output_dir() for p in nonTestProjects] |
1702 findbugsResults = join(_graal_home, 'findbugs.results') | 1702 findbugsResults = join(_graal_home, 'findbugs.results') |
1703 | 1703 |
1704 cmd = ['-jar', findbugsJar, '-textui', '-low', '-maxRank', '15', '-exclude', join(_graal_home, 'graal', 'findbugsExcludeFilter.xml')] | 1704 cmd = ['-jar', findbugsJar, '-textui', '-low', '-maxRank', '15'] |
1705 for s in mx.suites(): | |
1706 filt = join(s.dir, 'findbugsExcludeFilter.xml') | |
1707 if exists(filt): | |
1708 cmd.append('-exclude') | |
1709 cmd.append(filt) | |
1710 if sys.stdout.isatty(): | 1705 if sys.stdout.isatty(): |
1711 cmd.append('-progress') | 1706 cmd.append('-progress') |
1712 cmd = cmd + ['-auxclasspath', mx.classpath([p.name for p in nonTestProjects]), '-output', findbugsResults, '-progress', '-exitcode'] + args + outputDirs | 1707 cmd = cmd + ['-auxclasspath', mx.classpath([p.name for p in nonTestProjects]), '-output', findbugsResults, '-progress', '-exitcode'] + args + outputDirs |
1713 exitcode = mx.run_java(cmd, nonZeroIsFatal=False) | 1708 exitcode = mx.run_java(cmd, nonZeroIsFatal=False) |
1714 if exitcode != 0: | 1709 if exitcode != 0: |