R4SAS
3 years ago
5 changed files with 271 additions and 203 deletions
Binary file not shown.
@ -1,6 +1,6 @@ |
|||||||
#Thu Oct 15 17:35:03 MSK 2020 |
distributionBase=GRADLE_USER_HOME |
||||||
distributionBase=GRADLE_USER_HOME |
distributionPath=wrapper/dists |
||||||
distributionPath=wrapper/dists |
distributionSha256Sum=8b356fd8702d5ffa2e066ed0be45a023a779bba4dd1a68fd11bc2a6bdc981e8f |
||||||
zipStoreBase=GRADLE_USER_HOME |
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip |
||||||
zipStorePath=wrapper/dists |
zipStoreBase=GRADLE_USER_HOME |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip |
zipStorePath=wrapper/dists |
||||||
|
@ -1,84 +1,89 @@ |
|||||||
@if "%DEBUG%" == "" @echo off |
@rem |
||||||
@rem ########################################################################## |
@rem Copyright 2015 the original author or authors. |
||||||
@rem |
@rem |
||||||
@rem Gradle startup script for Windows |
@rem Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
@rem |
@rem you may not use this file except in compliance with the License. |
||||||
@rem ########################################################################## |
@rem You may obtain a copy of the License at |
||||||
|
@rem |
||||||
@rem Set local scope for the variables with windows NT shell |
@rem https://www.apache.org/licenses/LICENSE-2.0 |
||||||
if "%OS%"=="Windows_NT" setlocal |
@rem |
||||||
|
@rem Unless required by applicable law or agreed to in writing, software |
||||||
set DIRNAME=%~dp0 |
@rem distributed under the License is distributed on an "AS IS" BASIS, |
||||||
if "%DIRNAME%" == "" set DIRNAME=. |
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
set APP_BASE_NAME=%~n0 |
@rem See the License for the specific language governing permissions and |
||||||
set APP_HOME=%DIRNAME% |
@rem limitations under the License. |
||||||
|
@rem |
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. |
|
||||||
set DEFAULT_JVM_OPTS= |
@if "%DEBUG%" == "" @echo off |
||||||
|
@rem ########################################################################## |
||||||
@rem Find java.exe |
@rem |
||||||
if defined JAVA_HOME goto findJavaFromJavaHome |
@rem Gradle startup script for Windows |
||||||
|
@rem |
||||||
set JAVA_EXE=java.exe |
@rem ########################################################################## |
||||||
%JAVA_EXE% -version >NUL 2>&1 |
|
||||||
if "%ERRORLEVEL%" == "0" goto init |
@rem Set local scope for the variables with windows NT shell |
||||||
|
if "%OS%"=="Windows_NT" setlocal |
||||||
echo. |
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
set DIRNAME=%~dp0 |
||||||
echo. |
if "%DIRNAME%" == "" set DIRNAME=. |
||||||
echo Please set the JAVA_HOME variable in your environment to match the |
set APP_BASE_NAME=%~n0 |
||||||
echo location of your Java installation. |
set APP_HOME=%DIRNAME% |
||||||
|
|
||||||
goto fail |
@rem Resolve any "." and ".." in APP_HOME to make it shorter. |
||||||
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi |
||||||
:findJavaFromJavaHome |
|
||||||
set JAVA_HOME=%JAVA_HOME:"=% |
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. |
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe |
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" |
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto init |
@rem Find java.exe |
||||||
|
if defined JAVA_HOME goto findJavaFromJavaHome |
||||||
echo. |
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% |
set JAVA_EXE=java.exe |
||||||
echo. |
%JAVA_EXE% -version >NUL 2>&1 |
||||||
echo Please set the JAVA_HOME variable in your environment to match the |
if "%ERRORLEVEL%" == "0" goto execute |
||||||
echo location of your Java installation. |
|
||||||
|
echo. |
||||||
goto fail |
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
||||||
|
echo. |
||||||
:init |
echo Please set the JAVA_HOME variable in your environment to match the |
||||||
@rem Get command-line arguments, handling Windows variants |
echo location of your Java installation. |
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args |
goto fail |
||||||
|
|
||||||
:win9xME_args |
:findJavaFromJavaHome |
||||||
@rem Slurp the command line arguments. |
set JAVA_HOME=%JAVA_HOME:"=% |
||||||
set CMD_LINE_ARGS= |
set JAVA_EXE=%JAVA_HOME%/bin/java.exe |
||||||
set _SKIP=2 |
|
||||||
|
if exist "%JAVA_EXE%" goto execute |
||||||
:win9xME_args_slurp |
|
||||||
if "x%~1" == "x" goto execute |
echo. |
||||||
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% |
||||||
set CMD_LINE_ARGS=%* |
echo. |
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the |
||||||
:execute |
echo location of your Java installation. |
||||||
@rem Setup the command line |
|
||||||
|
goto fail |
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar |
|
||||||
|
:execute |
||||||
@rem Execute Gradle |
@rem Setup the command line |
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% |
|
||||||
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar |
||||||
:end |
|
||||||
@rem End local scope for the variables with windows NT shell |
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd |
@rem Execute Gradle |
||||||
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* |
||||||
:fail |
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of |
:end |
||||||
rem the _cmd.exe /c_ return code! |
@rem End local scope for the variables with windows NT shell |
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 |
if "%ERRORLEVEL%"=="0" goto mainEnd |
||||||
exit /b 1 |
|
||||||
|
:fail |
||||||
:mainEnd |
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of |
||||||
if "%OS%"=="Windows_NT" endlocal |
rem the _cmd.exe /c_ return code! |
||||||
|
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 |
||||||
:omega |
exit /b 1 |
||||||
|
|
||||||
|
:mainEnd |
||||||
|
if "%OS%"=="Windows_NT" endlocal |
||||||
|
|
||||||
|
:omega |
||||||
|
Loading…
Reference in new issue