diff options
author | PJ Fanning <fanningpj@apache.org> | 2023-08-05 13:14:56 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2023-08-05 13:14:56 +0000 |
commit | c4e7b5174c1875220132941d8508da7d2db2b1dd (patch) | |
tree | e89fa681652d2806dbfdf707186a6beab2a86944 /gradlew | |
parent | 57d746827f48710f094b09f5d4a24090be97d4fb (diff) | |
download | poi-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-x | gradlew | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |