Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 91 lines (66 sloc) 2.404 kb
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
1 @if "%DEBUG%" == "" @echo off
2 @rem ##########################################################################
3 @rem
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
4 @rem Gradle startup script for Windows
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
5 @rem
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
6 @rem ##########################################################################
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
7
8 @rem Set local scope for the variables with windows NT shell
9 if "%OS%"=="Windows_NT" setlocal
10
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
11 @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 set DEFAULT_JVM_OPTS=
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
13
14 set DIRNAME=%~dp0
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
15 if "%DIRNAME%" == "" set DIRNAME=.
16 set APP_BASE_NAME=%~n0
17 set APP_HOME=%DIRNAME%
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
18
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
19 @rem Find java.exe
20 if defined JAVA_HOME goto findJavaFromJavaHome
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
21
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
22 set JAVA_EXE=java.exe
23 %JAVA_EXE% -version >NUL 2>&1
24 if "%ERRORLEVEL%" == "0" goto init
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
25
26 echo.
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
28 echo.
29 echo Please set the JAVA_HOME variable in your environment to match the
30 echo location of your Java installation.
31
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
32 goto fail
33
34 :findJavaFromJavaHome
35 set JAVA_HOME=%JAVA_HOME:"=%
36 set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
38 if exist "%JAVA_EXE%" goto init
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
39
40 echo.
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
41 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
42 echo.
43 echo Please set the JAVA_HOME variable in your environment to match the
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
44 echo location of your Java installation.
45
46 goto fail
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
47
48 :init
49 @rem Get command-line arguments, handling Windowz variants
50
51 if not "%OS%" == "Windows_NT" goto win9xME_args
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
52 if "%@eval[2+2]" == "4" goto 4NT_args
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
53
54 :win9xME_args
55 @rem Slurp the command line arguments.
56 set CMD_LINE_ARGS=
57 set _SKIP=2
58
59 :win9xME_args_slurp
60 if "x%~1" == "x" goto execute
61
62 set CMD_LINE_ARGS=%*
63 goto execute
64
65 :4NT_args
66 @rem Get arguments from the 4NT Shell from JP Software
67 set CMD_LINE_ARGS=%$
68
69 :execute
70 @rem Setup the command line
71
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
72 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
73
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
74 @rem Execute Gradle
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%
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
76
77 :end
78 @rem End local scope for the variables with windows NT shell
79 if "%ERRORLEVEL%"=="0" goto mainEnd
80
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
81 :fail
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 rem the _cmd.exe /c_ return code!
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
84 if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 exit /b 1
1d6c0e8 Gradle-ified Spring Social build
Craig Walls authored
86
87 :mainEnd
88 if "%OS%"=="Windows_NT" endlocal
89
4db8b3c Converted to new submodule-less Gradle build
Craig Walls authored
90 :omega
Something went wrong with that request. Please try again.