Browse Source

Get the tests dependent on ANT_HOME running

master
Gintas Grigelionis 6 years ago
parent
commit
f871e80a6a
2 changed files with 25 additions and 10 deletions
  1. +20
    -10
      src/etc/poms/ant/pom.xml
  2. +5
    -0
      src/etc/poms/pom.xml

+ 20
- 10
src/etc/poms/ant/pom.xml View File

@@ -82,11 +82,6 @@
<filter>../../../../target/ant/.build.timestamp.properties</filter>
</filters>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration> </configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
@@ -106,6 +101,23 @@
</tasks>
</configuration>
</execution>
<execution>
<id>get-ant-distribution</id>
<phase>generate-test-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<get src="http://apache.mirrors.spacedump.net//ant/binaries/apache-ant-1.10.5-bin.zip"
dest="${project.build.directory}/ant.zip"/>
<delete dir="${project.build.directory}/ant.zip"/>
<unzip src="${project.build.directory}/ant.zip" dest="${project.build.directory}/ant-home">
<cutdirsmapper dirs="1"/>
</unzip>
</tasks>
</configuration>
</execution>
<execution>
<id>create-antlib-test-jar</id>
<phase>process-test-classes</phase>
@@ -207,7 +219,7 @@
<exclude>org/apache/tools/ant/taskdefs/optional/Pvcs*</exclude>
<!-- xalan: workaround for different resource encoding -->
<exclude>org/apache/tools/ant/taskdefs/optional/TraXLiaison*</exclude>
<!-- ERROR: UnknownHostException: chemical -->
<!-- ERROR: UnknownHostException: chemical (XML parser-dependent) -->
<exclude>org/apache/tools/ant/taskdefs/optional/XmlValidateCatalog*</exclude>
<!-- image/imageio -->
<exclude>org/apache/tools/ant/taskdefs/optional/image/</exclude>
@@ -227,8 +239,6 @@
<exclude>org/apache/tools/ant/types/Assertions*</exclude>
<!-- bcel -->
<exclude>org/apache/tools/ant/types/optional/depend/ClassFileSet*</exclude>
<!-- dependent on ANT_HOME containing full distribution with bin and lib -->
<exclude>org/apache/tools/ant/types/selectors/ModifiedSelector*</exclude>
<!-- ERROR: defaults.properties are in both compile and test file tree -->
<exclude>org/apache/tools/ant/util/ClasspathUtils*</exclude>
<exclude>org/apache/tools/ant/util/LoaderUtils*</exclude>
@@ -239,7 +249,7 @@
<!-- dependent on IncludeTest.class: checks presence -->
<exclude>org/apache/tools/ant/AntClassLoaderDelegation*</exclude>
<!-- ERROR: More pseudo attributes are expected (encoding="UTF-8");
failure mode is JRE-dependent (see to do for failures in IDE) -->
failure mode is XML parser-dependent (see to do for failures in IDE) -->
<exclude>org/apache/tools/ant/Include*</exclude>
<!-- dependent on JUnit 5 -->
<exclude>org/example/junitlauncher/</exclude>
@@ -270,7 +280,7 @@
<systemProperties>
<property>
<name>ant.home</name>
<value>${env.ANT_HOME}</value>
<value>${project.build.directory}/ant-home</value>
</property>
<property>
<name>build.classes.value</name>


+ 5
- 0
src/etc/poms/pom.xml View File

@@ -152,6 +152,11 @@
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
</plugin>
</plugins>
</pluginManagement>
</build>


Loading…
Cancel
Save