annotate gradlew.bat @ 26:428c92e0ae10 version-0.4.3

USASR-2436: Set branch release version
author Christopher Springer <springer@nwoca.org>
date Wed, 21 Dec 2016 13:14:08 +0000
parents c51874d4a5a7
children 927f02ccc596
rev   line source
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
1 @if "%DEBUG%" == "" @echo off
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
2 @rem ##########################################################################
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
3 @rem
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
4 @rem Gradle startup script for Windows
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
5 @rem
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
6 @rem ##########################################################################
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
7
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
8 @rem Set local scope for the variables with windows NT shell
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
9 if "%OS%"=="Windows_NT" setlocal
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
10
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
11 @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
12 set DEFAULT_JVM_OPTS=
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
13
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
14 set DIRNAME=%~dp0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
15 if "%DIRNAME%" == "" set DIRNAME=.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
16 set APP_BASE_NAME=%~n0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
17 set APP_HOME=%DIRNAME%
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
18
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
19 @rem Find java.exe
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
20 if defined JAVA_HOME goto findJavaFromJavaHome
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
21
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
22 set JAVA_EXE=java.exe
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
23 %JAVA_EXE% -version >NUL 2>&1
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
24 if "%ERRORLEVEL%" == "0" goto init
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
25
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
26 echo.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
28 echo.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
29 echo Please set the JAVA_HOME variable in your environment to match the
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
30 echo location of your Java installation.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
31
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
32 goto fail
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
33
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
34 :findJavaFromJavaHome
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
35 set JAVA_HOME=%JAVA_HOME:"=%
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
36 set JAVA_EXE=%JAVA_HOME%/bin/java.exe
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
37
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
38 if exist "%JAVA_EXE%" goto init
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
39
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
40 echo.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
41 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
42 echo.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
43 echo Please set the JAVA_HOME variable in your environment to match the
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
44 echo location of your Java installation.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
45
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
46 goto fail
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
47
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
48 :init
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
49 @rem Get command-line arguments, handling Windowz variants
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
50
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
51 if not "%OS%" == "Windows_NT" goto win9xME_args
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
52 if "%@eval[2+2]" == "4" goto 4NT_args
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
53
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
54 :win9xME_args
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
55 @rem Slurp the command line arguments.
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
56 set CMD_LINE_ARGS=
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
57 set _SKIP=2
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
58
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
59 :win9xME_args_slurp
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
60 if "x%~1" == "x" goto execute
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
61
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
62 set CMD_LINE_ARGS=%*
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
63 goto execute
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
64
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
65 :4NT_args
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
66 @rem Get arguments from the 4NT Shell from JP Software
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
67 set CMD_LINE_ARGS=%$
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
68
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
69 :execute
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
70 @rem Setup the command line
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
71
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
72 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
73
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
74 @rem Execute Gradle
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
75 "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
76
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
77 :end
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
78 @rem End local scope for the variables with windows NT shell
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
79 if "%ERRORLEVEL%"=="0" goto mainEnd
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
80
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
81 :fail
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
83 rem the _cmd.exe /c_ return code!
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
84 if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
85 exit /b 1
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
86
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
87 :mainEnd
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
88 if "%OS%"=="Windows_NT" endlocal
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
89
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
90 :omega