You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2020/07/20 19:40:33 UTC

[lucene-solr] 01/02: Emit altJvmWarning.

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch jira/LUCENE-9312
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 1cf443ab7a487a3904b3ddf9e2a1aca442517464
Author: Dawid Weiss <dw...@apache.org>
AuthorDate: Mon Jul 20 21:38:27 2020 +0200

    Emit altJvmWarning.
---
 gradle/testing/runtime-jvm-support.gradle | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gradle/testing/runtime-jvm-support.gradle b/gradle/testing/runtime-jvm-support.gradle
index 185390f..1e69291 100644
--- a/gradle/testing/runtime-jvm-support.gradle
+++ b/gradle/testing/runtime-jvm-support.gradle
@@ -52,17 +52,20 @@ if (!currentJvm.javaExecutable.equals(altJvm.javaExecutable)) {
   allprojects {
     // Any tests
     tasks.withType(Test) {
+      dependsOn ":altJvmWarning"
       executable = altJvm.javaExecutable
     }
 
     // Any javac compilation tasks
     tasks.withType(JavaCompile) {
+      dependsOn ":altJvmWarning"
       options.fork = true
       options.forkOptions.javaHome = altJvm.installationDirectory.asFile
     }
 
     def javadocExecutable = altJvm.jdk.get().javadocExecutable.asFile
     tasks.matching { it.name == "renderJavadoc" || it.name == "renderSiteJavadoc" }.all {
+      dependsOn ":altJvmWarning"
       executable = javadocExecutable
     }
   }