File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.1.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.2 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env sh
2
2
3
3
#
4
4
# Copyright 2015 the original author or authors.
@@ -172,12 +172,14 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
172
172
esac
173
173
fi
174
174
175
- ARGV=(" $@ " )
176
- eval set -- $DEFAULT_JVM_OPTS
175
+ # Escape application args
176
+ save () {
177
+ for i do printf %s\\ n " $i " | sed " s/'/'\\\\ ''/g;1s/^/'/;\$ s/\$ /' \\\\ /" ; done
178
+ echo " "
179
+ }
180
+ APP_ARGS=` save " $@ " `
177
181
178
- IFS=$'
179
- ' read -rd ' ' -a JAVA_OPTS_ARR <<< " $(echo $JAVA_OPTS | xargs -n1)"
180
- IFS=$'
181
- ' read -rd ' ' -a GRADLE_OPTS_ARR <<< " $(echo $GRADLE_OPTS | xargs -n1)"
182
+ # Collect all arguments for the java command, following the shell quoting and substitution rules
183
+ eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS " \" -Dorg.gradle.appname=$APP_BASE_NAME \" " -classpath " \" $CLASSPATH \" " org.gradle.wrapper.GradleWrapperMain " $APP_ARGS "
182
184
183
- exec " $JAVACMD " " $@ " " ${JAVA_OPTS_ARR[@]} " " ${GRADLE_OPTS_ARR[@]} " " -Dorg.gradle.appname= $APP_BASE_NAME " -classpath " $CLASSPATH " org.gradle.wrapper.GradleWrapperMain " ${ARGV[@]} "
185
+ exec " $JAVACMD " " $@ "
You can’t perform that action at this time.
0 commit comments