Нема описа

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 https://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 init
  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 init
  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. :init
  54. @rem Get command-line arguments, handling Windows variants
  55. if not "%OS%" == "Windows_NT" goto win9xME_args
  56. :win9xME_args
  57. @rem Slurp the command line arguments.
  58. set CMD_LINE_ARGS=
  59. set _SKIP=2
  60. :win9xME_args_slurp
  61. if "x%~1" == "x" goto execute
  62. set CMD_LINE_ARGS=%*
  63. :execute
  64. @rem Setup the command line
  65. set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
  66. @rem Execute Gradle
  67. "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
  68. :end
  69. @rem End local scope for the variables with windows NT shell
  70. if "%ERRORLEVEL%"=="0" goto mainEnd
  71. :fail
  72. rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
  73. rem the _cmd.exe /c_ return code!
  74. if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
  75. exit /b 1
  76. :mainEnd
  77. if "%OS%"=="Windows_NT" endlocal
  78. :omega