diff options
author | Stefan Bodewig <bodewig@apache.org> | 2018-12-16 11:02:48 +0100 |
---|---|---|
committer | Stefan Bodewig <bodewig@apache.org> | 2018-12-16 11:02:48 +0100 |
commit | 876376a8d1eaea4b181941f7fdc823d0070c9d7f (patch) | |
tree | 3a0aea7508b4b923f64d0406340f17e00eff0b62 /src/etc/poms | |
parent | 5fe086f0d594d3970c63a1cb950bc2aaba182f10 (diff) | |
download | ant-876376a8d1eaea4b181941f7fdc823d0070c9d7f.tar.gz |
exclude modules package from mvn when not using Java9
Many thanks to Gintas (@twogee) for catching this
Diffstat (limited to 'src/etc/poms')
-rw-r--r-- | src/etc/poms/ant/pom.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/etc/poms/ant/pom.xml b/src/etc/poms/ant/pom.xml index 99c65f9c5..6a52c7e54 100644 --- a/src/etc/poms/ant/pom.xml +++ b/src/etc/poms/ant/pom.xml @@ -35,6 +35,9 @@ <artifactId>ant</artifactId> <version>1.10.6-SNAPSHOT</version> <name>Apache Ant Core</name> + <properties> + <modules.exclude>org/apache/tools/ant/taskdefs/modules/</modules.exclude> + </properties> <dependencies> <dependency> <groupId>org.apache.ant</groupId> @@ -175,6 +178,7 @@ <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude> <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude> <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude> + <exclude>${modules.exclude}</exclude> <exclude>org/apache/tools/ant/taskdefs/optional/NetRexxC*</exclude> <exclude>org/apache/tools/ant/taskdefs/optional/Xalan2TraceSupport*</exclude> <exclude>org/apache/tools/ant/taskdefs/optional/image/</exclude> @@ -213,6 +217,8 @@ <exclude>org/apache/tools/ant/taskdefs/StyleTest*</exclude> <!-- ERROR: Unexpected recipients --> <exclude>org/apache/tools/ant/taskdefs/email/EmailTask*</exclude> + <!-- Java9+ --> + <exclude>${modules.exclude}</exclude> <!-- antlr --> <exclude>org/apache/tools/ant/taskdefs/optional/ANTLR*</exclude> <!-- obsolete --> @@ -366,4 +372,15 @@ <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory> <directory>../../../../target/${project.artifactId}</directory> </build> + <profiles> + <profile> + <id>java9+</id> + <activation> + <jdk>[9,)</jdk> + </activation> + <properties> + <modules.exclude>not/here</modules.exclude> + </properties> + </profile> + </profiles> </project> |