gradlew.bat
gradlew.bat
1@if "%DEBUG%" == "" @echo off2@rem ##########################################################################3@rem4@rem Gradle startup script for Windows5@rem6@rem ##########################################################################78@rem Set local scope for the variables with windows NT shell9if "%OS%"=="Windows_NT" setlocal1011@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.12set DEFAULT_JVM_OPTS=1314set DIRNAME=%~dp015if "%DIRNAME%" == "" set DIRNAME=.16set APP_BASE_NAME=%~n017set APP_HOME=%DIRNAME%1819@rem Find java.exe20if defined JAVA_HOME goto findJavaFromJavaHome2122set JAVA_EXE=java.exe23%JAVA_EXE% -version >NUL 2>&124if "%ERRORLEVEL%" == "0" goto init2526echo.27echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.28echo.29echo Please set the JAVA_HOME variable in your environment to match the30echo location of your Java installation.3132goto fail3334:findJavaFromJavaHome35set JAVA_HOME=%JAVA_HOME:"=%36set JAVA_EXE=%JAVA_HOME%/bin/java.exe3738if exist "%JAVA_EXE%" goto init3940echo.41echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%42echo.43echo Please set the JAVA_HOME variable in your environment to match the44echo location of your Java installation.4546goto fail4748:init49@rem Get command-line arguments, handling Windowz variants5051if not "%OS%" == "Windows_NT" goto win9xME_args52if "%@eval[2+2]" == "4" goto 4NT_args5354:win9xME_args55@rem Slurp the command line arguments.56set CMD_LINE_ARGS=57set _SKIP=25859:win9xME_args_slurp60if "x%~1" == "x" goto execute6162set CMD_LINE_ARGS=%*63goto execute6465:4NT_args66@rem Get arguments from the 4NT Shell from JP Software67set CMD_LINE_ARGS=%$6869:execute70@rem Setup the command line7172set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar7374@rem Execute Gradle75"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%7677:end78@rem End local scope for the variables with windows NT shell79if "%ERRORLEVEL%"=="0" goto mainEnd8081:fail82rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of83rem the _cmd.exe /c_ return code!84if not "" == "%GRADLE_EXIT_CONSOLE%" exit 185exit /b 18687:mainEnd88if "%OS%"=="Windows_NT" endlocal8990:omega91