12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- @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%
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
- if defined JAVA_HOME goto findJavaFromJavaHome
- set JAVA_EXE=java.exe
- %JAVA_EXE% -version >NUL 2>&1
- if %ERRORLEVEL% equ 0 goto execute
- 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 execute
- 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
- :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 %*
- :end
- if %ERRORLEVEL% equ 0 goto mainEnd
- :fail
- set EXIT_CODE=%ERRORLEVEL%
- if %EXIT_CODE% equ 0 set EXIT_CODE=1
- if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
- exit /b %EXIT_CODE%
- :mainEnd
- if "%OS%"=="Windows_NT" endlocal
- :omega
|