Skip to content

Commit

Permalink
LUCENE-9448, LUCENE-9990: fix Luke's launcher task.
Browse files Browse the repository at this point in the history
  • Loading branch information
dweiss committed Sep 16, 2021
1 parent b7a286d commit de45b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions gradle/testing/alternative-jdk-support.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ if (jvmGradle != jvmCurrent) {
}

// Set up root project's properties.
rootProject.ext.runtimeJavaExecutable = jvmCurrent.javaExecutable
rootProject.ext.runtimeJavaHome = jvmCurrent.javaHome
rootProject.ext.runtimeJavaVersion = jvmDetector.getMetadata(jvmCurrent.javaHome).languageVersion
7 changes: 1 addition & 6 deletions lucene/luke/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,8 @@ task run() {

doFirst {
logger.lifecycle("Launching Luke ${project.version} right now...")
def javaExecutable = {
def registry = project.extensions.getByType(JavaInstallationRegistry)
def currentJvm = registry.installationForCurrentVirtualMachine.get()
currentJvm.getJavaExecutable().asFile
}()
ant.exec(
executable: javaExecutable,
executable: rootProject.ext.runtimeJavaExecutable,
spawn: true,
vmlauncher: true
) {
Expand Down

0 comments on commit de45b68

Please sign in to comment.