# HG changeset patch # User Doug Simon # Date 1370276863 -7200 # Node ID 931f9ced42ad08fc971d31ccfd8c3f0c88d0c216 # Parent 91a1041ec905c83cb6b91a983997f9dfa7a97ad9 omit projects from distributions where the project's Java compliance level is too high diff -r 91a1041ec905 -r 931f9ced42ad mxtool/mx.py --- a/mxtool/mx.py Sat Jun 01 20:42:22 2013 -0400 +++ b/mxtool/mx.py Mon Jun 03 18:27:43 2013 +0200 @@ -1700,6 +1700,11 @@ try: zf = zipfile.ZipFile(tmp, 'w') for p in sorted_deps(d.deps): + # skip a Java project if its Java compliance level is "higher" than the configured JDK + if java().javaCompliance < p.javaCompliance: + log('Excluding {0} from {2} (Java compliance level {1} required)'.format(p.name, p.javaCompliance, d.path)) + continue + outputDir = p.output_dir() for root, _, files in os.walk(outputDir): relpath = root[len(outputDir) + 1:]