diff options
Diffstat (limited to 'gradlew.bat')
-rw-r--r-- | gradlew.bat | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gradlew.bat b/gradlew.bat index ac1b06f9..53a6b238 100644 --- a/gradlew.bat +++ b/gradlew.bat | |||
@@ -14,7 +14,7 @@ | |||
14 | @rem limitations under the License. | 14 | @rem limitations under the License. |
15 | @rem | 15 | @rem |
16 | 16 | ||
17 | @if "%DEBUG%" == "" @echo off | 17 | @if "%DEBUG%"=="" @echo off |
18 | @rem ########################################################################## | 18 | @rem ########################################################################## |
19 | @rem | 19 | @rem |
20 | @rem Gradle startup script for Windows | 20 | @rem Gradle startup script for Windows |
@@ -25,7 +25,7 @@ | |||
25 | if "%OS%"=="Windows_NT" setlocal | 25 | if "%OS%"=="Windows_NT" setlocal |
26 | 26 | ||
27 | set DIRNAME=%~dp0 | 27 | set DIRNAME=%~dp0 |
28 | if "%DIRNAME%" == "" set DIRNAME=. | 28 | if "%DIRNAME%"=="" set DIRNAME=. |
29 | set APP_BASE_NAME=%~n0 | 29 | set APP_BASE_NAME=%~n0 |
30 | set APP_HOME=%DIRNAME% | 30 | set APP_HOME=%DIRNAME% |
31 | 31 | ||
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome | |||
40 | 40 | ||
41 | set JAVA_EXE=java.exe | 41 | set JAVA_EXE=java.exe |
42 | %JAVA_EXE% -version >NUL 2>&1 | 42 | %JAVA_EXE% -version >NUL 2>&1 |
43 | if "%ERRORLEVEL%" == "0" goto execute | 43 | if %ERRORLEVEL% equ 0 goto execute |
44 | 44 | ||
45 | echo. | 45 | echo. |
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
@@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | |||
75 | 75 | ||
76 | :end | 76 | :end |
77 | @rem End local scope for the variables with windows NT shell | 77 | @rem End local scope for the variables with windows NT shell |
78 | if "%ERRORLEVEL%"=="0" goto mainEnd | 78 | if %ERRORLEVEL% equ 0 goto mainEnd |
79 | 79 | ||
80 | :fail | 80 | :fail |
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of |
82 | rem the _cmd.exe /c_ return code! | 82 | rem the _cmd.exe /c_ return code! |
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 | 83 | set EXIT_CODE=%ERRORLEVEL% |
84 | exit /b 1 | 84 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 |
85 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% | ||
86 | exit /b %EXIT_CODE% | ||
85 | 87 | ||
86 | :mainEnd | 88 | :mainEnd |
87 | if "%OS%"=="Windows_NT" endlocal | 89 | if "%OS%"=="Windows_NT" endlocal |