diff options
| author | Robert Greig <rgreig@apache.org> | 2007-02-12 10:10:27 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-02-12 10:10:27 +0000 |
| commit | 9f058a5a5193fb2b05113a092e4e83025dba05ea (patch) | |
| tree | 82b4ddfa5482564471d0ddc9602493042f7d9580 /java/client/pom.xml | |
| parent | f77c9657bb44466c5e78709d0484f6ab7e2b0522 (diff) | |
| download | qpid-python-9f058a5a5193fb2b05113a092e4e83025dba05ea.tar.gz | |
(Path Qpid-337 submitted by Rupert Smith)
Does 1.4 retrotranslation as part of the maven build.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@506401 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/pom.xml')
| -rw-r--r-- | java/client/pom.xml | 140 |
1 files changed, 98 insertions, 42 deletions
diff --git a/java/client/pom.xml b/java/client/pom.xml index 854428fb39..303aa108c6 100644 --- a/java/client/pom.xml +++ b/java/client/pom.xml @@ -38,6 +38,11 @@ <java.source.version>1.5</java.source.version> <qpid.version>${pom.version}</qpid.version> <qpid.targetDir>${project.build.directory}</qpid.targetDir> + + <!-- Override these in local settings.xml to perform verification. Cannot make assumptions about 1.4 Jdk location to turn this on by default. --> + <retrotranslator.verify>false</retrotranslator.verify> + <retrotranslator.1.4-rt-path/> + </properties> <dependencies> @@ -67,7 +72,7 @@ <artifactId>mina-filter-ssl</artifactId> </dependency> - <!-- Test Dependencies --> + <!-- Test Dependencies --> <dependency> <!-- for inVm Broker --> <groupId>org.apache.qpid</groupId> <artifactId>qpid-broker</artifactId> @@ -98,6 +103,14 @@ <artifactId>easymockclassextension</artifactId> <scope>test</scope> </dependency> + + <!-- This needs to be included at compile time, for the retrotranslator verification to find it. --> + <dependency> + <groupId>net.sf.retrotranslator</groupId> + <artifactId>retrotranslator-runtime</artifactId> + <scope>provided</scope> + </dependency> + </dependencies> <build> @@ -141,48 +154,91 @@ </executions> </plugin> - </plugins> + <!-- Backports the module to Java 1.4. This is done during the packaging phase as a transformation of the Jar. --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>retrotranslator-maven-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>translate</goal> + </goals> + <configuration> + <destjar>${project.build.directory}/${project.build.finalName}-java1.4.jar</destjar> + <verify>${retrotranslator.verify}</verify> + <verifyClasspath> + <element>${retrotranslator.1.4-rt-path}</element> + <element>${retrotranslator.1.4-jce-path}</element> + <element>${retrotranslator.1.4-jsse-path}</element> + </verifyClasspath> + <includes> + <include> + <directory>${project.build.directory}</directory> + <pattern>${project.build.finalName}.jar</pattern> + </include> + </includes> + </configuration> + </execution> + + </executions> + </plugin> + + <!-- This identifies the backported java 1.4 jar and attaches it as a jar (classified as java1.4) build artifact. --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-artifacts</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>${project.build.directory}/${project.build.finalName}-java1.4.jar</file> + <type>jar</type> + <classifier>java1.4</classifier> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin> -<!-- The inclusion of this resource causes the build to hang. --> - <!--resources> - <resource> - <targetPath>META-INF/</targetPath> - <filtering>false</filtering> - <directory>../resources/META-INF</directory> - <includes> - <include>**</include> - </includes> - </resource> - </resources--> - - <testResources> - <testResource> - <targetPath>META-INF/</targetPath> - <filtering>false</filtering> - <directory>../resources/META-INF</directory> - <includes> - <include>**</include> - </includes> - </testResource> - <testResource> - <targetPath>src/</targetPath> - <filtering>false</filtering> - <directory>src/test/java</directory> - <includes> - <include>**/*.java</include> - </includes> - </testResource> - - <testResource> - <targetPath></targetPath> - <filtering>false</filtering> - <directory>src/main/java</directory> - <includes> - <include>client.log4j</include> - </includes> - </testResource> - </testResources> + </plugins> + <testResources> + <testResource> + <targetPath>META-INF/</targetPath> + <filtering>false</filtering> + <directory>../resources/META-INF</directory> + <includes> + <include>**</include> + </includes> + </testResource> + <testResource> + <targetPath>src/</targetPath> + <filtering>false</filtering> + <directory>src/test/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </testResource> + + <testResource> + <targetPath></targetPath> + <filtering>false</filtering> + <directory>src/main/java</directory> + <includes> + <include>client.log4j</include> + </includes> + </testResource> + </testResources> + </build> - + </project> +
\ No newline at end of file |
