Allow passing test launcher args through project properties

This commit is contained in:
Yoann Rodière 2022-06-09 14:46:09 +02:00 committed by Christian Beikov
parent 075eb51500
commit f46d61b6e7
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@ if ( gradle.ext.javaToolchainEnabled ) {
// Configure JVM Options // Configure JVM Options
jvmArgs( getProperty( 'toolchain.launcher.jvmargs' ).toString().split( ' ' ) ) jvmArgs( getProperty( 'toolchain.launcher.jvmargs' ).toString().split( ' ' ) )
if ( project.hasProperty( 'test.jdk.launcher.args' ) ) {
jvmArgs( project.getProperty( 'test.jdk.launcher.args' ).toString().split( ' ' ) )
}
// Display version of Java tools // Display version of Java tools
doFirst { doFirst {