Kevin Williams wrote:
> Although Tuscany as a whole is dependent on JDK 1.5, the RDB DAS is
> not. With Maven 1 you can build a 1.4 compatible JAR by dropping the
> following project.properties file into ... java/das/rdb:
>
> maven.compile.target=javac1.4
> maven.compile.fork=true
> maven.compile.source=1.4
> maven.compile.target=1.4
>
> I'll determine the maven 2 equivalent and post it here later today.
>
Index: pom.xml
===================================================================
--- pom.xml (revision 372107)
+++ pom.xml (working copy)
@@ -91,6 +91,14 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
However, the DatabaseSetup class in the testsuite uses String.contains()
which is a Java5 method. The patch above allows das to be built under
1.5 and run on 1.4 but to build on 1.4 the tests will need to be changed.
--
Jeremy