gradlew.bat
author Da Risk <da_risk@geekorum.com>
Mon, 11 Aug 2025 14:57:58 -0400
changeset 1360 fc435d5de38c
parent 0 14443efede32
permissions -rw-r--r--
build: update gradle and AGP
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     1
@rem
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     2
@rem Copyright 2015 the original author or authors.
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     3
@rem
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     4
@rem Licensed under the Apache License, Version 2.0 (the "License");
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     5
@rem you may not use this file except in compliance with the License.
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     6
@rem You may obtain a copy of the License at
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     7
@rem
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     8
@rem      https://www.apache.org/licenses/LICENSE-2.0
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
     9
@rem
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    10
@rem Unless required by applicable law or agreed to in writing, software
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    11
@rem distributed under the License is distributed on an "AS IS" BASIS,
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    12
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    13
@rem See the License for the specific language governing permissions and
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    14
@rem limitations under the License.
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    15
@rem
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    16
@rem SPDX-License-Identifier: Apache-2.0
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    17
@rem
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    18
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    19
@if "%DEBUG%"=="" @echo off
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    20
@rem ##########################################################################
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    21
@rem
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    22
@rem  Gradle startup script for Windows
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    23
@rem
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    24
@rem ##########################################################################
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    25
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    26
@rem Set local scope for the variables with windows NT shell
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    27
if "%OS%"=="Windows_NT" setlocal
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    28
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    29
set DIRNAME=%~dp0
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    30
if "%DIRNAME%"=="" set DIRNAME=.
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    31
@rem This is normally unused
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    32
set APP_BASE_NAME=%~n0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    33
set APP_HOME=%DIRNAME%
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    34
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    35
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    36
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    37
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    38
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    39
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    40
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    41
@rem Find java.exe
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    42
if defined JAVA_HOME goto findJavaFromJavaHome
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    43
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    44
set JAVA_EXE=java.exe
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    45
%JAVA_EXE% -version >NUL 2>&1
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    46
if %ERRORLEVEL% equ 0 goto execute
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    47
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    48
echo. 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    49
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    50
echo. 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    51
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    52
echo location of your Java installation. 1>&2
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    53
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    54
goto fail
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    55
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    56
:findJavaFromJavaHome
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    57
set JAVA_HOME=%JAVA_HOME:"=%
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    58
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    59
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    60
if exist "%JAVA_EXE%" goto execute
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    61
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    62
echo. 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    63
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    64
echo. 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    65
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    66
echo location of your Java installation. 1>&2
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    67
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    68
goto fail
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    69
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    70
:execute
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    71
@rem Setup the command line
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    72
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    73
set CLASSPATH=
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    74
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    75
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    76
@rem Execute Gradle
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    77
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    78
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    79
:end
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    80
@rem End local scope for the variables with windows NT shell
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    81
if %ERRORLEVEL% equ 0 goto mainEnd
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    82
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    83
:fail
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    84
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    85
rem the _cmd.exe /c_ return code!
1360
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    86
set EXIT_CODE=%ERRORLEVEL%
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    87
if %EXIT_CODE% equ 0 set EXIT_CODE=1
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    88
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
fc435d5de38c build: update gradle and AGP
Da Risk <da_risk@geekorum.com>
parents: 0
diff changeset
    89
exit /b %EXIT_CODE%
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    90
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    91
:mainEnd
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    92
if "%OS%"=="Windows_NT" endlocal
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    93
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    94
:omega