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
parent ab44830251
commit 6845edd74e
No known key found for this signature in database
GPG Key ID: B8D049359DC35ABC
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,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

@ -282,7 +282,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 {