aboutsummaryrefslogtreecommitdiffstats
path: root/gradlew
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-08-05 13:14:56 +0000
committerPJ Fanning <fanningpj@apache.org>2023-08-05 13:14:56 +0000
commitc4e7b5174c1875220132941d8508da7d2db2b1dd (patch)
treee89fa681652d2806dbfdf707186a6beab2a86944 /gradlew
parent57d746827f48710f094b09f5d4a24090be97d4fb (diff)
downloadpoi-c4e7b5174c1875220132941d8508da7d2db2b1dd.tar.gz
poi-c4e7b5174c1875220132941d8508da7d2db2b1dd.zip
remove gradle-wrapper jar because it is against ASF policy to ship jars in source releases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew13
1 files changed, 13 insertions, 0 deletions
diff --git a/gradlew b/gradlew
index aeb74cbb43..4e47bba686 100755
--- a/gradlew
+++ b/gradlew
@@ -111,6 +111,19 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
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
+ rm -f "$APP_HOME/gradle/wrapper/gradle-wrapper.jar"
+ # Pause for a bit before looping in case the server throttled us.
+ sleep 5
+ continue
+ fi
+ fi
+done
+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar