学考乐离线App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gradlew.bat 2.6KB

2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 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. if "%ERRORLEVEL%"=="0" goto mainEnd
  61. :fail
  62. rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
  63. rem the _cmd.exe /c_ return code!
  64. if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
  65. exit /b 1
  66. :mainEnd
  67. if "%OS%"=="Windows_NT" endlocal
  68. :omega