diff options
author | PJ Fanning <fanningpj@apache.org> | 2023-08-18 09:43:49 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2023-08-18 09:43:49 +0000 |
commit | f07be05484209e2de35817826db26473786b9c58 (patch) | |
tree | 26e909c8a174f900f93b3f3761ee9090d69eb629 /gradlew | |
parent | 1bdfdcc7934d3c00b5f1a846ede0caffc66ef66a (diff) | |
download | poi-f07be05484209e2de35817826db26473786b9c58.tar.gz poi-f07be05484209e2de35817826db26473786b9c58.zip |
gradle 8.3
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911751 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gradlew')
-rwxr-xr-x | gradlew | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -83,7 +83,8 @@ done # This is normally unused # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -115,7 +116,7 @@ esac # Loop in case we encounter an error. for attempt in 1 2 3; do if [ ! -e "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" ]; then - if ! curl -s -S --retry 3 -L -o "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" "https://raw.githubusercontent.com/gradle/gradle/v8.2.1/gradle/wrapper/gradle-wrapper.jar"; then + if ! curl -s -S --retry 3 -L -o "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" "https://raw.githubusercontent.com/gradle/gradle/v8.3/gradle/wrapper/gradle-wrapper.jar"; then rm -f "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" # Pause for a bit before looping in case the server throttled us. sleep 5 @@ -143,10 +144,13 @@ location of your Java installation." fi else JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can. |