aboutsummaryrefslogtreecommitdiffstats
path: root/gradlew
diff options
context:
space:
mode:
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew5
1 files changed, 4 insertions, 1 deletions
diff --git a/gradlew b/gradlew
index aeb74cbb..fcb6fca1 100755
--- a/gradlew
+++ b/gradlew
@@ -130,10 +130,13 @@ location of your Java installation."
130 fi 130 fi
131else 131else
132 JAVACMD=java 132 JAVACMD=java
133 which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 133 if ! command -v java >/dev/null 2>&1
134 then
135 die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134 136
135Please set the JAVA_HOME variable in your environment to match the 137Please set the JAVA_HOME variable in your environment to match the
136location of your Java installation." 138location of your Java installation."
139 fi
137fi 140fi
138 141
139# Increase the maximum file descriptors if we can. 142# Increase the maximum file descriptors if we can.