HHH-14371 Correctly set JVM args in the JVM running tests
Turns out getJvmArgs() returns a copy, so modifying that copy won't change the JVM args. Signed-off-by: Yoann Rodière <yoann@hibernate.org>
This commit is contained in:
parent
3ca80e2270
commit
7d82649ed4
|
@ -233,7 +233,7 @@ if ( gradle.ext.javaToolchainEnabled ) {
|
|||
}
|
||||
|
||||
// Configure JVM Options
|
||||
jvmArgs.addAll( getProperty( 'toolchain.launcher.jvmargs' ).toString().split( ' ' ) )
|
||||
jvmArgs( getProperty( 'toolchain.launcher.jvmargs' ).toString().split( ' ' ) )
|
||||
|
||||
// Display version of Java tools
|
||||
doFirst {
|
||||
|
|
|
@ -281,7 +281,7 @@ task testJavassist(type: Test) {
|
|||
}
|
||||
|
||||
// Configure JVM Options
|
||||
jvmArgs.addAll( getProperty( 'toolchain.launcher.jvmargs' ).toString().split( ' ' ) )
|
||||
jvmArgs( getProperty( 'toolchain.launcher.jvmargs' ).toString().split( ' ' ) )
|
||||
|
||||
// Display version of Java tools
|
||||
doFirst {
|
||||
|
|
Loading…
Reference in New Issue