# HG changeset patch # User Doug Simon # Date 1371324500 -7200 # Node ID 193d5163a94a4932a546f5c121458a78d159a6e3 # Parent 4dada3ec9c58dc4299cb898ef00c5db68cd39420 exclude projects from mx checkstyle if their Java compliance level is higher than the configured JDK diff -r 4dada3ec9c58 -r 193d5163a94a mxtool/mx.py --- a/mxtool/mx.py Sat Jun 15 21:27:14 2013 +0200 +++ b/mxtool/mx.py Sat Jun 15 21:28:20 2013 +0200 @@ -1862,6 +1862,11 @@ if not exists(dotCheckstyle): continue + + # skip checking this Java project if its Java compliance level is "higher" than the configured JDK + if java().javaCompliance < p.javaCompliance: + log('Excluding {0} from checking (Java compliance level {1} required)'.format(p.name, p.javaCompliance)) + continue for sourceDir in sourceDirs: javafilelist = []