simple_mtglife

diff android/gradlew.bat @ 0:6321cfa2ad62

initial
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Jan 2015 15:24:27 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/android/gradlew.bat	Fri Jan 23 15:24:27 2015 +0200
     1.3 @@ -0,0 +1,90 @@
     1.4 +@if "%DEBUG%" == "" @echo off
     1.5 +@rem ##########################################################################
     1.6 +@rem
     1.7 +@rem  Gradle startup script for Windows
     1.8 +@rem
     1.9 +@rem ##########################################################################
    1.10 +
    1.11 +@rem Set local scope for the variables with windows NT shell
    1.12 +if "%OS%"=="Windows_NT" setlocal
    1.13 +
    1.14 +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
    1.15 +set DEFAULT_JVM_OPTS=
    1.16 +
    1.17 +set DIRNAME=%~dp0
    1.18 +if "%DIRNAME%" == "" set DIRNAME=.
    1.19 +set APP_BASE_NAME=%~n0
    1.20 +set APP_HOME=%DIRNAME%
    1.21 +
    1.22 +@rem Find java.exe
    1.23 +if defined JAVA_HOME goto findJavaFromJavaHome
    1.24 +
    1.25 +set JAVA_EXE=java.exe
    1.26 +%JAVA_EXE% -version >NUL 2>&1
    1.27 +if "%ERRORLEVEL%" == "0" goto init
    1.28 +
    1.29 +echo.
    1.30 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
    1.31 +echo.
    1.32 +echo Please set the JAVA_HOME variable in your environment to match the
    1.33 +echo location of your Java installation.
    1.34 +
    1.35 +goto fail
    1.36 +
    1.37 +:findJavaFromJavaHome
    1.38 +set JAVA_HOME=%JAVA_HOME:"=%
    1.39 +set JAVA_EXE=%JAVA_HOME%/bin/java.exe
    1.40 +
    1.41 +if exist "%JAVA_EXE%" goto init
    1.42 +
    1.43 +echo.
    1.44 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
    1.45 +echo.
    1.46 +echo Please set the JAVA_HOME variable in your environment to match the
    1.47 +echo location of your Java installation.
    1.48 +
    1.49 +goto fail
    1.50 +
    1.51 +:init
    1.52 +@rem Get command-line arguments, handling Windowz variants
    1.53 +
    1.54 +if not "%OS%" == "Windows_NT" goto win9xME_args
    1.55 +if "%@eval[2+2]" == "4" goto 4NT_args
    1.56 +
    1.57 +:win9xME_args
    1.58 +@rem Slurp the command line arguments.
    1.59 +set CMD_LINE_ARGS=
    1.60 +set _SKIP=2
    1.61 +
    1.62 +:win9xME_args_slurp
    1.63 +if "x%~1" == "x" goto execute
    1.64 +
    1.65 +set CMD_LINE_ARGS=%*
    1.66 +goto execute
    1.67 +
    1.68 +:4NT_args
    1.69 +@rem Get arguments from the 4NT Shell from JP Software
    1.70 +set CMD_LINE_ARGS=%$
    1.71 +
    1.72 +:execute
    1.73 +@rem Setup the command line
    1.74 +
    1.75 +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
    1.76 +
    1.77 +@rem Execute Gradle
    1.78 +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
    1.79 +
    1.80 +:end
    1.81 +@rem End local scope for the variables with windows NT shell
    1.82 +if "%ERRORLEVEL%"=="0" goto mainEnd
    1.83 +
    1.84 +:fail
    1.85 +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
    1.86 +rem the _cmd.exe /c_ return code!
    1.87 +if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
    1.88 +exit /b 1
    1.89 +
    1.90 +:mainEnd
    1.91 +if "%OS%"=="Windows_NT" endlocal
    1.92 +
    1.93 +:omega