mirror of https://github.com/apache/lucene.git
jgit shouldn't fork git to find out the config dir (#11959)
* Windows part. * jgit shouldn't fork git to find out the config dir (posix) Co-authored-by: Robert Muir <rmuir@apache.org>
This commit is contained in:
parent
332679886c
commit
fa0031bde5
|
@ -209,6 +209,9 @@ save () {
|
||||||
}
|
}
|
||||||
APP_ARGS=$(save "$@")
|
APP_ARGS=$(save "$@")
|
||||||
|
|
||||||
|
# Prevent jgit from forking/searching git.exe
|
||||||
|
export GIT_CONFIG_NOSYSTEM=1
|
||||||
|
|
||||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||||
eval set -- $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain $GRADLE_DAEMON_CTRL "$APP_ARGS"
|
eval set -- $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain $GRADLE_DAEMON_CTRL "$APP_ARGS"
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,9 @@ set CLASSPATH=%GRADLE_WRAPPER_JAR%
|
||||||
SET GRADLE_DAEMON_CTRL=
|
SET GRADLE_DAEMON_CTRL=
|
||||||
IF NOT EXIST "%DIRNAME%\gradle.properties" SET GRADLE_DAEMON_CTRL=--no-daemon
|
IF NOT EXIST "%DIRNAME%\gradle.properties" SET GRADLE_DAEMON_CTRL=--no-daemon
|
||||||
|
|
||||||
|
@rem Prevent jgit from forking/searching git.exe
|
||||||
|
SET GIT_CONFIG_NOSYSTEM=1
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %GRADLE_DAEMON_CTRL% %*
|
"%JAVA_EXE%" %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %GRADLE_DAEMON_CTRL% %*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue