Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

gradlew.bat 2.6 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @rem
  2. @rem Copyright 2015 the original author or authors.
  3. @rem
  4. @rem Licensed under the Apache License, Version 2.0 (the "License");
  5. @rem you may not use this file except in compliance with the License.
  6. @rem You may obtain a copy of the License at
  7. @rem
  8. @rem http://www.apache.org/licenses/LICENSE-2.0
  9. @rem
  10. @rem Unless required by applicable law or agreed to in writing, software
  11. @rem distributed under the License is distributed on an "AS IS" BASIS,
  12. @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. @rem See the License for the specific language governing permissions and
  14. @rem limitations under the License.
  15. @rem
  16. @if "%DEBUG%" == "" @echo off
  17. @rem ##########################################################################
  18. @rem
  19. @rem Gradle startup script for Windows
  20. @rem
  21. @rem ##########################################################################
  22. @rem Set local scope for the variables with windows NT shell
  23. if "%OS%"=="Windows_NT" setlocal
  24. set DIRNAME=%~dp0
  25. if "%DIRNAME%" == "" set DIRNAME=.
  26. set APP_BASE_NAME=%~n0
  27. set APP_HOME=%DIRNAME%
  28. @rem Resolve any "." and ".." in APP_HOME to make it shorter.
  29. for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
  30. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
  31. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
  32. @rem Find java.exe
  33. if defined JAVA_HOME goto findJavaFromJavaHome
  34. set JAVA_EXE=java.exe
  35. %JAVA_EXE% -version >NUL 2>&1
  36. if "%ERRORLEVEL%" == "0" goto execute
  37. echo.
  38. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
  39. echo.
  40. echo Please set the JAVA_HOME variable in your environment to match the
  41. echo location of your Java installation.
  42. goto fail
  43. :findJavaFromJavaHome
  44. set JAVA_HOME=%JAVA_HOME:"=%
  45. set JAVA_EXE=%JAVA_HOME%/bin/java.exe
  46. if exist "%JAVA_EXE%" goto execute
  47. echo.
  48. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
  49. echo.
  50. echo Please set the JAVA_HOME variable in your environment to match the
  51. echo location of your Java installation.
  52. goto fail
  53. :execute
  54. @rem Setup the command line
  55. set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
  56. @rem Execute Gradle
  57. "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
  58. :end
  59. @rem End local scope for the variables with windows NT shell
  60. :fail
  61. rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
  62. rem the _cmd.exe /c_ return code!
  63. if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
  64. exit /b 1
  65. :mainEnd
  66. if "%OS%"=="Windows_NT" endlocal
  67. :omega