Simon McClenahan wrote on Wednesday, July 06, 2005 11:28 PM:

> I have a need to compile with Java 1.2 and 1.3 . As far as I
> can tell I set the maven.compile.{source,target} properties
> to 1.2 and 1.3 as appropriate, but it doesn't seem to be working, e.g.
> 
> maven.compile.source=1.3
> maven.compile.target=1.3

This sets only th compliance level or the current compiler, but does not *use* 
a different one. Use following settings and define the location of the 1.3 JDK 
somewhere else (e.g. in your local build.properties).

maven.compile.fork=yes
maven.compile.target=1.3
maven.compile.compiler=javac1.3
maven.compile.executable=${jdk13.home}/bin/javac
maven.compile.compilerargs=-bootclasspath ${jdk13.home}/jre/lib/rt.jar

maven.junit.fork=true
maven.junit.jvm=${jdk13.home}/jre/bin/java

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to