123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- @if "%DEBUG%" == "" @echo off
- if "%OS%"=="Windows_NT" setlocal
- set DIRNAME=%~dp0
- if "%DIRNAME%" == "" set DIRNAME=.
- set APP_BASE_NAME=%~n0
- set APP_HOME=%DIRNAME%
- set DEFAULT_JVM_OPTS=
- if defined JAVA_HOME goto findJavaFromJavaHome
- set JAVA_EXE=java.exe
- %JAVA_EXE% -version >NUL 2>&1
- if "%ERRORLEVEL%" == "0" goto init
- echo.
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
- echo.
- echo Please set the JAVA_HOME variable in your environment to match the
- echo location of your Java installation.
- goto fail
- :findJavaFromJavaHome
- set JAVA_HOME=%JAVA_HOME:"=%
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
- if exist "%JAVA_EXE%" goto init
- echo.
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
- echo.
- echo Please set the JAVA_HOME variable in your environment to match the
- echo location of your Java installation.
- goto fail
- :init
- if not "%OS%" == "Windows_NT" goto win9xME_args
- :win9xME_args
- set CMD_LINE_ARGS=
- set _SKIP=2
- :win9xME_args_slurp
- if "x%~1" == "x" goto execute
- set CMD_LINE_ARGS=%*
- :execute
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
- :end
- if "%ERRORLEVEL%"=="0" goto mainEnd
- :fail
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
- exit /b 1
- :mainEnd
- if "%OS%"=="Windows_NT" endlocal
- :omega
|