Re: [m2] Compile with one JDK and tests with several

2007-02-19 Thread JC Walmetz
What I'd like to do is to execute tests in 1.5 and 1.6. Changing the rt.jar is not enough. By the past we had trouble with bugs in JDK. Just changing the rt.jar is not enough. We really need to use another JDK. What I'd like to do is during the dev to use JDK 1.5, to release with the JDK 1.5

Re: [m2] Compile with one JDK and tests with several

2007-02-19 Thread nicolas de loof
The wiki page explain a solution I've found to compile for a target 1.3 Jre with using another JRE to support dev tools, like some testing / mock tools that require java5. The goal is not to test under various JRE, just to assert the binaries will not reference methods that do not exist under

Re: [m2] Compile with one JDK and tests with several

2007-02-19 Thread JC Walmetz
Problem of using multiple server is that you rebuild the jar. Consequently you do not test the jar compile in jdk 1.5 in Jdk 1.6. I really like to test the jar build with jdk1.5 in jdk 1.6 nicolas de loof-2 wrote: The wiki page explain a solution I've found to compile for a target 1.3 Jre

Re: [m2] Compile with one JDK and tests with several

2007-02-19 Thread nicolas de loof
You should only run tests, not compile the jar, by packaging your tests as test-jar and runing them in a portability-test project you can deploy on a ci-server with various JRE. Nico. 2007/2/19, JC Walmetz [EMAIL PROTECTED]: Problem of using multiple server is that you rebuild the jar.

Re: [m2] Compile with one JDK and tests with several

2007-02-19 Thread JC Walmetz
I have tried to do that. In a standard project surefire scans the test classes directory to search for junit tests. When test cases are in a jar file I do not find how to parameter surefire plugin to scan test-jar. How can I parameter surefire to scan a test-jar ? nicolas de loof-2 wrote:

Re: [m2] Compile with one JDK and tests with several

2007-02-19 Thread nicolas de loof
You may look at the maven-dependecy-plugin and it'zs unpack goal 2007/2/19, JC Walmetz [EMAIL PROTECTED]: I have tried to do that. In a standard project surefire scans the test classes directory to search for junit tests. When test cases are in a jar file I do not find how to parameter

Re: Compile with one JDK and tests with several

2007-02-15 Thread Wayne Fay
This is discussed now and then on this list with various approaches posted, so search the Archives. Also, this is discussed in the Wiki: http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions I have to imagine you could utilize various configurations in multiple