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