|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 | 3 | #
|
4 |
| -# Copyright © 2015-2021 the original authors. |
| 4 | +# Copyright © 2015 the original authors. |
5 | 5 | #
|
6 | 6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
7 | 7 | # you may not use this file except in compliance with the License.
|
@@ -114,7 +114,6 @@ case "$( uname )" in #(
|
114 | 114 | NONSTOP* ) nonstop=true ;;
|
115 | 115 | esac
|
116 | 116 |
|
117 |
| -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar |
118 | 117 |
|
119 | 118 |
|
120 | 119 | # Determine the Java command to use to start the JVM.
|
|
172 | 171 | # For Cygwin or MSYS, switch paths to Windows format before running java
|
173 | 172 | if "$cygwin" || "$msys" ; then
|
174 | 173 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
175 |
| - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) |
176 | 174 |
|
177 | 175 | JAVACMD=$( cygpath --unix "$JAVACMD" )
|
178 | 176 |
|
|
205 | 203 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
206 | 204 |
|
207 | 205 | # Collect all arguments for the java command:
|
208 |
| -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
| 206 | +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
209 | 207 | # and any embedded shellness will be escaped.
|
210 | 208 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
211 | 209 | # treated as '${Hostname}' itself on the command line.
|
212 | 210 |
|
213 | 211 | set -- \
|
214 | 212 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
|
215 |
| - -classpath "$CLASSPATH" \ |
216 |
| - org.gradle.wrapper.GradleWrapperMain \ |
| 213 | + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ |
217 | 214 | "$@"
|
218 | 215 |
|
219 | 216 | # Stop when "xargs" is not available.
|
|
0 commit comments