Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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