You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/06/25 05:03:40 UTC

[groovy] branch master updated: Tweak build script just to log java executable

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

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ac3c6bf50 Tweak build script just to log java executable
4ac3c6bf50 is described below

commit 4ac3c6bf50aa7eda7e03d3067ae39214d31e8319
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jun 25 13:03:27 2022 +0800

    Tweak build script just to log java executable
    
    java executable of Windows has "exe" file extension
---
 buildSrc/src/main/groovy/org.apache.groovy-tested.gradle | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle b/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle
index 7d0f40412b..8194d2ab8f 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle
@@ -59,9 +59,6 @@ tasks.withType(Test).configureEach {
         String targetJavaHome = rootProject.property('target.java.home')?.trim()
         if (targetJavaHome) {
             executable = "${targetJavaHome}/bin/java"
-            if (!new File(executable).exists()) {
-                throw new GradleException("${executable} does not exist")
-            }
             println "Using ${executable} to run tests"
         }
     }