File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
test/immutable-collections-patch Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,16 @@ generatePatch.configure {
3131
3232 classpath = sourceSets. main. runtimeClasspath
3333 mainClass = ' org.elasticsearch.jdk.patch.ImmutableCollectionsPatcher'
34+ if (buildParams. getIsRuntimeJavaHomeSet()) {
35+ executable = " ${ buildParams.runtimeJavaHome.get()} /bin/java" + (OS . current() == OS . WINDOWS ? ' .exe' : ' ' )
36+ } else {
3437 javaLauncher = javaToolchains. launcherFor {
3538 languageVersion = JavaLanguageVersion . of(VersionProperties . bundledJdkMajorVersion)
3639 vendor = VersionProperties . bundledJdkVendor == " openjdk" ?
3740 JvmVendorSpec . ORACLE :
3841 JvmVendorSpec . matching(VersionProperties . bundledJdkVendor)
3942 }
43+ }
4044 doFirst {
4145 args outputDir. get(). getAsFile(). toString()
4246 }
You can’t perform that action at this time.
0 commit comments