···1313@rem See the License for the specific language governing permissions and
1414@rem limitations under the License.
1515@rem
1616+@rem SPDX-License-Identifier: Apache-2.0
1717+@rem
16181717-@if "%DEBUG%" == "" @echo off
1919+@if "%DEBUG%"=="" @echo off
1820@rem ##########################################################################
1921@rem
2022@rem Gradle startup script for Windows
···2527if "%OS%"=="Windows_NT" setlocal
26282729set DIRNAME=%~dp0
2828-if "%DIRNAME%" == "" set DIRNAME=.
3030+if "%DIRNAME%"=="" set DIRNAME=.
3131+@rem This is normally unused
2932set APP_BASE_NAME=%~n0
3033set APP_HOME=%DIRNAME%
3134···40434144set JAVA_EXE=java.exe
4245%JAVA_EXE% -version >NUL 2>&1
4343-if "%ERRORLEVEL%" == "0" goto execute
4646+if %ERRORLEVEL% equ 0 goto execute
44474545-echo.
4646-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
4747-echo.
4848-echo Please set the JAVA_HOME variable in your environment to match the
4949-echo location of your Java installation.
4848+echo. 1>&2
4949+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
5050+echo. 1>&2
5151+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
5252+echo location of your Java installation. 1>&2
50535154goto fail
5255···56595760if exist "%JAVA_EXE%" goto execute
58615959-echo.
6060-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
6161-echo.
6262-echo Please set the JAVA_HOME variable in your environment to match the
6363-echo location of your Java installation.
6262+echo. 1>&2
6363+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
6464+echo. 1>&2
6565+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
6666+echo location of your Java installation. 1>&2
64676568goto fail
66696770:execute
6871@rem Setup the command line
69727070-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
717372747375@rem Execute Gradle
7474-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
7676+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
75777678:end
7779@rem End local scope for the variables with windows NT shell
7878-if "%ERRORLEVEL%"=="0" goto mainEnd
8080+if %ERRORLEVEL% equ 0 goto mainEnd
79818082:fail
8183rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8284rem the _cmd.exe /c_ return code!
8383-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
8484-exit /b 1
8585+set EXIT_CODE=%ERRORLEVEL%
8686+if %EXIT_CODE% equ 0 set EXIT_CODE=1
8787+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
8888+exit /b %EXIT_CODE%
85898690:mainEnd
8791if "%OS%"=="Windows_NT" endlocal