summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/itest/wsdlgen
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-11-03 20:21:07 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-11-03 20:21:07 +0000
commit312ad6b165ce6b356cd7d945ff7b61ddb1578ca1 (patch)
tree4ef7714284433cc252ef43d67c8c9f4cd2fbcb3b /sca-java-1.x/trunk/itest/wsdlgen
parent2d8bd12810fa007f2c95e7fc8ef4c4f7a73423e8 (diff)
Merge r1030643 TUSCANY-3765: Ensure all classes produced by the build are compatible with JDK 5
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1030647 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/itest/wsdlgen')
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen/pom.xml68
1 files changed, 67 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/itest/wsdlgen/pom.xml b/sca-java-1.x/trunk/itest/wsdlgen/pom.xml
index 9360f79cb0..4fd168cfca 100644
--- a/sca-java-1.x/trunk/itest/wsdlgen/pom.xml
+++ b/sca-java-1.x/trunk/itest/wsdlgen/pom.xml
@@ -205,8 +205,74 @@
<sei>helloworld.HelloWorldImpl</sei>
<genWsdl>true</genWsdl>
<keep>true</keep>
+ <!-- TUSCANY-3765: avoid using class files that run only on JDK 6 -->
+ <destDir>${basedir}/target/unused-wsgen-classes</destDir>
+ <sourceDestDir>${basedir}/target/jaxws-source</sourceDestDir>
</configuration>
- </plugin>
+ </plugin>
+ <!-- TUSCANY-3765: produce JDK 5-compatible JAX-WS class files -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>add-test-source</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${basedir}/target/jaxws-source</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- TUSCANY-3765: copy JDK 5-compatible JAX-WS class files to the correct location -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-jaxws-classes</id>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target/classes/helloworld</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/target/test-classes/helloworld</directory>
+ <includes>
+ <include>jaxws/**</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- TUSCANY-3765: delete directories containing unused class files -->
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>cleanup-jaxws-classes</id>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <delete dir="${basedir}/target/unused-wsgen-classes" includeemptydirs="true"/>
+ <delete dir="${basedir}/target/test-classes/helloworld/jaxws" includeemptydirs="true"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>