annotate gradlew.bat @ 3:4ce973027b2a

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