source: gradlew.bat @ 9c2994c

Last change on this file since 9c2994c was 646dbff, checked in by str4d <str4d@…>, 3 years ago

Add license details for Gradle wrapper

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