kitaev@213: @if "%DEBUG%" == "" @echo off kitaev@213: @rem ########################################################################## kitaev@213: @rem ## kitaev@213: @rem Gradle startup script for Windows ## kitaev@213: @rem ## kitaev@213: @rem ########################################################################## kitaev@213: kitaev@213: @rem Set local scope for the variables with windows NT shell kitaev@213: if "%OS%"=="Windows_NT" setlocal kitaev@213: kitaev@213: @rem Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. kitaev@213: @rem set GRADLE_OPTS=%GRADLE_OPTS% -Xmx512m kitaev@213: @rem set JAVA_OPTS=%JAVA_OPTS% -Xmx512m kitaev@213: kitaev@213: set DIRNAME=%~dp0 kitaev@213: if "%DIRNAME%" == "" set DIRNAME=.\ kitaev@213: kitaev@213: @rem Find java.exe kitaev@213: set JAVA_EXE=java.exe kitaev@213: if not defined JAVA_HOME goto init kitaev@213: kitaev@213: set JAVA_HOME=%JAVA_HOME:"=% kitaev@213: set JAVA_EXE=%JAVA_HOME%/bin/java.exe kitaev@213: kitaev@213: if exist "%JAVA_EXE%" goto init kitaev@213: kitaev@213: echo. kitaev@213: echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% kitaev@213: echo. kitaev@213: echo Please set the JAVA_HOME variable in your environment to match the kitaev@213: echo location of your Java installation. kitaev@213: echo. kitaev@213: goto end kitaev@213: kitaev@213: :init kitaev@213: @rem Get command-line arguments, handling Windowz variants kitaev@213: kitaev@213: if not "%OS%" == "Windows_NT" goto win9xME_args kitaev@213: if "%eval[2+2]" == "4" goto 4NT_args kitaev@213: kitaev@213: :win9xME_args kitaev@213: @rem Slurp the command line arguments. kitaev@213: set CMD_LINE_ARGS= kitaev@213: set _SKIP=2 kitaev@213: kitaev@213: :win9xME_args_slurp kitaev@213: if "x%~1" == "x" goto execute kitaev@213: kitaev@213: set CMD_LINE_ARGS=%* kitaev@213: goto execute kitaev@213: kitaev@213: :4NT_args kitaev@213: @rem Get arguments from the 4NT Shell from JP Software kitaev@213: set CMD_LINE_ARGS=%$ kitaev@213: kitaev@213: :execute kitaev@213: @rem Setup the command line kitaev@213: kitaev@213: set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain kitaev@213: set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar kitaev@213: set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties kitaev@213: kitaev@213: set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%" kitaev@213: kitaev@213: @rem Execute Gradle kitaev@213: "%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS% kitaev@213: kitaev@213: :end kitaev@213: @rem End local scope for the variables with windows NT shell kitaev@213: if "%ERRORLEVEL%"=="0" goto mainEnd kitaev@213: kitaev@213: if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 kitaev@213: kitaev@213: rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of kitaev@213: rem the _cmd.exe /c_ return code! kitaev@213: if not "" == "%GRADLE_EXIT_CONSOLE%" exit "%ERRORLEVEL%" kitaev@213: exit /b "%ERRORLEVEL%" kitaev@213: kitaev@213: :mainEnd kitaev@213: if "%OS%"=="Windows_NT" endlocal kitaev@213: kitaev@213: :omega