uschindler commented on code in PR #14592:
URL: https://github.com/apache/lucene/pull/14592#discussion_r2068371257
##########
gradlew:
##########
@@ -239,19 +200,59 @@ if "$cygwin" || "$msys" ; then
done
fi
+# START OF LUCENE CUSTOMIZATION
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to
pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
# Prevent jgit from forking/searching git.exe
export GIT_CONFIG_NOSYSTEM=1
+# LUCENE-9471: workaround for gradle leaving junk temp. files behind.
+GRADLE_TEMPDIR="$APP_HOME/.gradle/tmp"
+mkdir -p "$GRADLE_TEMPDIR"
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ GRADLE_TEMPDIR=`cygpath --path --mixed "$GRADLE_TEMPDIR"`
+fi
+DEFAULT_JVM_OPTS="$DEFAULT_JVM_OPTS \"-Djava.io.tmpdir=$GRADLE_TEMPDIR\""
+
+# LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+fi
+
+GRADLE_WRAPPER_JAR="$APP_HOME/gradle/wrapper/gradle-wrapper.jar"
+if [ ! -e "$GRADLE_WRAPPER_JAR" ]; then
+ "$JAVACMD" $JAVA_OPTS
"$APP_HOME/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java"
"$GRADLE_WRAPPER_JAR"
+ WRAPPER_STATUS=$?
+ if [ "$WRAPPER_STATUS" -eq 1 ]; then
+ echo "ERROR: Something went wrong. Make sure you're using Java version
of exactly 23."
Review Comment:
looks like a typo.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]