12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- @if "%DEBUG%" == "" @echo off
-
-
-
-
-
-
- if "%OS%"=="Windows_NT" setlocal
-
- set DEFAULT_JVM_OPTS=
-
- set DIRNAME=%~dp0
- if "%DIRNAME%" == "" set DIRNAME=.
- set APP_BASE_NAME=%~n0
- set APP_HOME=%DIRNAME%
-
- 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
- if "%@eval[2+2]" == "4" goto 4NT_args
-
- :win9xME_args
-
- set CMD_LINE_ARGS=
- set _SKIP=2
-
- :win9xME_args_slurp
- if "x%~1" == "x" goto execute
-
- set CMD_LINE_ARGS=%*
- goto execute
-
- :4NT_args
-
- 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
|