1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- @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%" == "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%"=="0" goto mainEnd
- :fail
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
- exit /b 1
- :mainEnd
- if "%OS%"=="Windows_NT" endlocal
- :omega
|