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