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:08:54 UTC
[groovy] 02/02: 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 GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 0993e90ee4cdc8d13a03e98f7ab917bfe6e7aa1b
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jun 25 13:08:04 2022 +0800
Tweak build script just to log java executable
---
buildSrc/src/main/groovy/org.apache.groovy-tested.gradle | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle b/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle
index 254b9e4b81..8194d2ab8f 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-tested.gradle
@@ -56,9 +56,10 @@ tasks.withType(Test).configureEach {
'user.home': temporaryDir.absolutePath // make sure tests are isolated from real user home or tests using Grape may fail
if (rootProject.hasProperty('target.java.home')) {
- String targetJavaHome = rootProject.property('target.java.home')
- if (targetJavaHome?.trim()) {
+ String targetJavaHome = rootProject.property('target.java.home')?.trim()
+ if (targetJavaHome) {
executable = "${targetJavaHome}/bin/java"
+ println "Using ${executable} to run tests"
}
}