Mercurial > hg > truffle
changeset 10060:193d5163a94a
exclude projects from mx checkstyle if their Java compliance level is higher than the configured JDK
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sat, 15 Jun 2013 21:28:20 +0200 |
parents | 4dada3ec9c58 |
children | b6dfe12478ff |
files | mxtool/mx.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []