diff --git a/gradlew b/gradlew index 6c721242608..0c9d74ad293 100755 --- a/gradlew +++ b/gradlew @@ -104,7 +104,7 @@ fi # 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 -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 $? fi diff --git a/gradlew.bat b/gradlew.bat index bb3f631d9ca..14cb5808321 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -80,7 +80,7 @@ set CMD_LINE_ARGS=%* @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 -"%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 @rem Setup the command line