Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 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 |
comparison
equal
deleted
inserted
replaced
10059:4dada3ec9c58 | 10060:193d5163a94a |
---|---|
1860 sourceDirs = p.source_dirs() | 1860 sourceDirs = p.source_dirs() |
1861 dotCheckstyle = join(p.dir, '.checkstyle') | 1861 dotCheckstyle = join(p.dir, '.checkstyle') |
1862 | 1862 |
1863 if not exists(dotCheckstyle): | 1863 if not exists(dotCheckstyle): |
1864 continue | 1864 continue |
1865 | |
1866 # skip checking this Java project if its Java compliance level is "higher" than the configured JDK | |
1867 if java().javaCompliance < p.javaCompliance: | |
1868 log('Excluding {0} from checking (Java compliance level {1} required)'.format(p.name, p.javaCompliance)) | |
1869 continue | |
1865 | 1870 |
1866 for sourceDir in sourceDirs: | 1871 for sourceDir in sourceDirs: |
1867 javafilelist = [] | 1872 javafilelist = [] |
1868 for root, _, files in os.walk(sourceDir): | 1873 for root, _, files in os.walk(sourceDir): |
1869 javafilelist += [join(root, name) for name in files if name.endswith('.java') and name != 'package-info.java'] | 1874 javafilelist += [join(root, name) for name in files if name.endswith('.java') and name != 'package-info.java'] |