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:
Yoann Rodière 2020-12-14 12:10:10 +01:00 committed by Sanne Grinovero
parent 3ca80e2270
commit 7d82649ed4
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {