comparison mx/mx_graal.py @ 18163:c88ab4f1f04a

re-enabled Checkstyle with the release of 6.0 that supports Java 8; fixed existing Checkstyle warnings
author Doug Simon <doug.simon@oracle.com>
date Fri, 24 Oct 2014 16:18:10 +0200
parents c4f649042a7b
children 8588db09f5e9
comparison
equal deleted inserted replaced
18162:ab62800259ff 18163:c88ab4f1f04a
1531 _clean('CleanAfterEcjBuild') 1531 _clean('CleanAfterEcjBuild')
1532 1532
1533 with Task('BuildJavaWithJavac', tasks): 1533 with Task('BuildJavaWithJavac', tasks):
1534 build(['-p', '--no-native', '--force-javac']) 1534 build(['-p', '--no-native', '--force-javac'])
1535 1535
1536 with Task('Checkstyle', tasks) as t:
1537 if mx.checkstyle([]) != 0:
1538 t.abort('Checkstyle warnings were found')
1539
1536 with Task('Checkheaders', tasks) as t: 1540 with Task('Checkheaders', tasks) as t:
1537 if checkheaders([]) != 0: 1541 if checkheaders([]) != 0:
1538 t.abort('Checkheaders warnings were found') 1542 t.abort('Checkheaders warnings were found')
1539 1543
1540 with Task('FindBugs', tasks) as t: 1544 with Task('FindBugs', tasks) as t:
2269 failures = {} 2273 failures = {}
2270 for p in mx.projects(): 2274 for p in mx.projects():
2271 if p.native: 2275 if p.native:
2272 continue 2276 continue
2273 2277
2274 csConfig = join(mx.project(p.checkstyleProj).dir, '.checkstyle_checks.xml.disabled') 2278 csConfig = join(mx.project(p.checkstyleProj).dir, '.checkstyle_checks.xml')
2275 dom = xml.dom.minidom.parse(csConfig) 2279 dom = xml.dom.minidom.parse(csConfig)
2276 for module in dom.getElementsByTagName('module'): 2280 for module in dom.getElementsByTagName('module'):
2277 if module.getAttribute('name') == 'RegexpHeader': 2281 if module.getAttribute('name') == 'RegexpHeader':
2278 for prop in module.getElementsByTagName('property'): 2282 for prop in module.getElementsByTagName('property'):
2279 if prop.getAttribute('name') == 'header': 2283 if prop.getAttribute('name') == 'header':