2
0

gradlew.bat 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @if "%DEBUG%" == "" @echo off
  2. @rem ##########################################################################
  3. @rem
  4. @rem Gradle startup script for Windows
  5. @rem
  6. @rem ##########################################################################
  7. @rem Set local scope for the variables with windows NT shell
  8. if "%OS%"=="Windows_NT" setlocal
  9. set DIRNAME=%~dp0
  10. if "%DIRNAME%" == "" set DIRNAME=.
  11. set APP_BASE_NAME=%~n0
  12. set APP_HOME=%DIRNAME%
  13. @rem Resolve any "." and ".." in APP_HOME to make it shorter.
  14. for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
  15. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
  16. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
  17. @rem Find java.exe
  18. if defined JAVA_HOME goto findJavaFromJavaHome
  19. set JAVA_EXE=java.exe
  20. %JAVA_EXE% -version >NUL 2>&1
  21. if "%ERRORLEVEL%" == "0" goto execute
  22. echo.
  23. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
  24. echo.
  25. echo Please set the JAVA_HOME variable in your environment to match the
  26. echo location of your Java installation.
  27. goto fail
  28. :findJavaFromJavaHome
  29. set JAVA_HOME=%JAVA_HOME:"=%
  30. set JAVA_EXE=%JAVA_HOME%/bin/java.exe
  31. if exist "%JAVA_EXE%" goto execute
  32. echo.
  33. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
  34. echo.
  35. echo Please set the JAVA_HOME variable in your environment to match the
  36. echo location of your Java installation.
  37. goto fail
  38. :execute
  39. @rem Setup the command line
  40. set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
  41. @rem Execute Gradle
  42. "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
  43. :end
  44. @rem End local scope for the variables with windows NT shell
  45. if "%ERRORLEVEL%"=="0" goto mainEnd
  46. :fail
  47. rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
  48. rem the _cmd.exe /c_ return code!
  49. if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
  50. exit /b 1
  51. :mainEnd
  52. if "%OS%"=="Windows_NT" endlocal
  53. :omega