(empty log message)
@@ -14,7 +14,7 @@ | ||
14 | 14 | @rem limitations under the License. |
15 | 15 | @rem |
16 | 16 | |
17 | -@if "%DEBUG%" == "" @echo off | |
17 | +@if "%DEBUG%"=="" @echo off | |
18 | 18 | @rem ########################################################################## |
19 | 19 | @rem |
20 | 20 | @rem Gradle startup script for Windows |
@@ -25,7 +25,7 @@ | ||
25 | 25 | if "%OS%"=="Windows_NT" setlocal |
26 | 26 | |
27 | 27 | set DIRNAME=%~dp0 |
28 | -if "%DIRNAME%" == "" set DIRNAME=. | |
28 | +if "%DIRNAME%"=="" set DIRNAME=. | |
29 | 29 | set APP_BASE_NAME=%~n0 |
30 | 30 | set APP_HOME=%DIRNAME% |
31 | 31 |
@@ -40,7 +40,7 @@ | ||
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% equ 0 goto execute | |
44 | 44 | |
45 | 45 | echo. |
46 | 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
@@ -75,13 +75,15 @@ | ||
75 | 75 | |
76 | 76 | :end |
77 | 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 | 80 | :fail |
81 | 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of |
82 | 82 | rem the _cmd.exe /c_ return code! |
83 | -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 | |
84 | -exit /b 1 | |
83 | +set EXIT_CODE=%ERRORLEVEL% | |
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 | 88 | :mainEnd |
87 | 89 | if "%OS%"=="Windows_NT" endlocal |