For compiling targeting java 1.3 runtime
- with maven1 :
[project.properties]
maven.compile.compilerargs = -bootclasspath "${java13.home}/lib/rt.jar"
maven.compile.source = 1.3
maven.compile.target = 1.3
=> You have to set java13.home in your build.properties to your JRE 1.3
: java13.home = C:/Program Files/Java/jre...
- with maven2 :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.3</target>
<compilerArguments>
<bootclasspath>
${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar
</bootclasspath>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.3.1_08</version>
</dependency>
</dependencies>
</plugin>
=> You have to "install" the rt.jar of Java 1.3 JRE in your local repo
under com.sun:rt:1.3.1_08
Maven2 will give you the command to execute if artifact is not found.
Hope this will help !
Nico.
Henri Yandell a écrit :
Sorry for not reading this before the other reply Nico.
I'd definitely be interested in how that works, though would be good
to allow the 1.3 certify bit so I can get these releases out :)
Hen
On 11/14/06, Nicolas DE LOOF <[EMAIL PROTECTED]> wrote:
Sorry, I didn't read the beginning of this thread.
Do you want to create an Ant build only to ensure compilation for Java
1.3 runtime ?
I'm doing the same with maven by setting the compiler plugin to use JRE
1.3 rt.jar as bootclasspath. I've made some tests to ensure this
produces java 1.3 compliant code and doesn't link classes to methods
introduced in Java 1.4/Java5.
Nico.
Dennis Lundberg a écrit :
> Henri Yandell wrote:
>> Ideally I'd want to use Ant to build the dist under 1.3 and then use
>> Maven to generate the site under 1.5. I'd use 1.2, but I'm not setup
>> for that at the moment.
>>
>> In this case, I want to use Maven to do everything under 1.4 and
point
>> to the fact that Ant works under 1.3 to build a jar/test as
>> justification that it's okay to do it under 1.4. My personal
>> justifcation for the Ant files is that Maven-1 doesn't work under
>> 1.2/1.3, so I'm a bit low personal itch-wise for implementing lots of
>> stuff in the Ant files.
>
> +1
>
This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not
the intended recipient, you are not authorized to read, print,
retain, copy, disseminate, distribute, or use this message or any
part thereof. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]