mirror of https://github.com/apache/lucene.git
Support running gradlew from subdir
This commit is contained in:
parent
b5c5ebe37c
commit
9b29c2a420
|
@ -104,7 +104,7 @@ fi
|
||||||
|
|
||||||
# LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
|
# LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
|
||||||
GRADLE_WRAPPER_JAR=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
GRADLE_WRAPPER_JAR=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
if ! $JAVACMD --source 11 buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java $GRADLE_WRAPPER_JAR ; then
|
if ! $JAVACMD --source 11 $APP_HOME/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java $GRADLE_WRAPPER_JAR ; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ set CMD_LINE_ARGS=%*
|
||||||
|
|
||||||
@rem LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
|
@rem LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
|
||||||
set GRADLE_WRAPPER_JAR=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set GRADLE_WRAPPER_JAR=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
"%JAVA_EXE%" --source 11 buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java "%GRADLE_WRAPPER_JAR%"
|
"%JAVA_EXE%" --source 11 "%APP_HOME%"/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java "%GRADLE_WRAPPER_JAR%"
|
||||||
IF %ERRORLEVEL% NEQ 0 goto fail
|
IF %ERRORLEVEL% NEQ 0 goto fail
|
||||||
|
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
Loading…
Reference in New Issue