File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
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.2 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.6 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 82
82
83
83
CLASSPATH=$APP_HOME /gradle/wrapper/gradle-wrapper.jar
84
84
85
-
86
85
# Determine the Java command to use to start the JVM.
87
86
if [ -n " $JAVA_HOME " ] ; then
88
87
if [ -x " $JAVA_HOME /jre/sh/java" ] ; then
130
129
if [ " $cygwin " = " true" -o " $msys " = " true" ] ; then
131
130
APP_HOME=` cygpath --path --mixed " $APP_HOME " `
132
131
CLASSPATH=` cygpath --path --mixed " $CLASSPATH " `
133
-
134
132
JAVACMD=` cygpath --unix " $JAVACMD " `
135
133
136
134
# We build the pattern for arguments to be converted via cygpath
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
40
40
41
41
set JAVA_EXE = java.exe
42
42
%JAVA_EXE% -version > NUL 2 >& 1
43
- if " %ERRORLEVEL% " == " 0" goto execute
43
+ if " %ERRORLEVEL% " == " 0" goto init
44
44
45
45
echo .
46
46
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -54,7 +54,7 @@ goto fail
54
54
set JAVA_HOME = %JAVA_HOME:" =%
55
55
set JAVA_EXE = %JAVA_HOME% /bin/java.exe
56
56
57
- if exist " %JAVA_EXE% " goto execute
57
+ if exist " %JAVA_EXE% " goto init
58
58
59
59
echo .
60
60
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -64,14 +64,28 @@ echo location of your Java installation.
64
64
65
65
goto fail
66
66
67
+ :init
68
+ @ rem Get command-line arguments, handling Windows variants
69
+
70
+ if not " %OS% " == " Windows_NT" goto win9xME_args
71
+
72
+ :win9xME_args
73
+ @ rem Slurp the command line arguments.
74
+ set CMD_LINE_ARGS =
75
+ set _SKIP = 2
76
+
77
+ :win9xME_args_slurp
78
+ if " x%~1 " == " x" goto execute
79
+
80
+ set CMD_LINE_ARGS = %*
81
+
67
82
:execute
68
83
@ rem Setup the command line
69
84
70
85
set CLASSPATH = %APP_HOME% \gradle\wrapper\gradle-wrapper.jar
71
86
72
-
73
87
@ rem Execute Gradle
74
- " %JAVA_EXE% " %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% " -Dorg.gradle.appname=%APP_BASE_NAME% " -classpath " %CLASSPATH% " org.gradle.wrapper.GradleWrapperMain %*
88
+ " %JAVA_EXE% " %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% " -Dorg.gradle.appname=%APP_BASE_NAME% " -classpath " %CLASSPATH% " org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
75
89
76
90
:end
77
91
@ rem End local scope for the variables with windows NT shell
You can’t perform that action at this time.
0 commit comments