aboutsummaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2020-12-24 06:27:20 +0000
committerGitHub <noreply@github.com>2020-12-24 06:27:20 +0000
commitc979e79ee623e8bb4fc8bd8fb79a9867343f9268 (patch)
treee92351af82f0d5c3a713aae9615fcb978320623c /gradlew
parent68bdee39524339eb986c6710e63730be2ef856f2 (diff)
parentb98291c05ddf81f0eae410127e7d125fd8139d7a (diff)
downloadinfinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.tar
infinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.tar.gz
infinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.tar.bz2
infinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.tar.lz
infinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.tar.xz
infinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.tar.zst
infinity-for-reddit-c979e79ee623e8bb4fc8bd8fb79a9867343f9268.zip
Merge pull request #229 from TacoTheDank/master
Miscellaneous improvements
Diffstat (limited to '')
-rwxr-xr-xgradlew2
-rw-r--r--gradlew.bat22
2 files changed, 6 insertions, 18 deletions
diff --git a/gradlew b/gradlew
index 2fe81a7d..4f906e0c 100755
--- a/gradlew
+++ b/gradlew
@@ -82,6 +82,7 @@ esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
diff --git a/gradlew.bat b/gradlew.bat
index 9109989e..ac1b06f9 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
+if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -54,7 +54,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-if exist "%JAVA_EXE%" goto init
+if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -64,28 +64,14 @@ echo location of your Java installation.
goto fail
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell