Allow to compile and run tests with different java versions
Motivation: As we now need to compile with java8 we should still allow to run the tests with a different java version to ensure everythin also works with java 7 and 6. Modifications: Allow to pass "-DtestJavaHome" to the build and so use a different java version during running the tests. Result: Be able to run tests with different java versions.
This commit is contained in:
parent
b462421409
commit
adf0da37c0
2
pom.xml
2
pom.xml
@ -246,6 +246,7 @@
|
|||||||
<logging.logLevel>debug</logging.logLevel>
|
<logging.logLevel>debug</logging.logLevel>
|
||||||
<log4j2.version>2.6.2</log4j2.version>
|
<log4j2.version>2.6.2</log4j2.version>
|
||||||
<asm.version>5.1</asm.version>
|
<asm.version>5.1</asm.version>
|
||||||
|
<testJavaHome>${env.JAVA_HOME}</testJavaHome>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
@ -750,6 +751,7 @@
|
|||||||
<value>io.netty.build.junit.TimedOutTestsListener</value>
|
<value>io.netty.build.junit.TimedOutTestsListener</value>
|
||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
<jvm>${testJavaHome}/bin/java</jvm>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- always produce osgi bundles -->
|
<!-- always produce osgi bundles -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user