···1313@rem See the License for the specific language governing permissions and
1414@rem limitations under the License.
1515@rem
1616+@rem SPDX-License-Identifier: Apache-2.0
1717+@rem
16181719@if "%DEBUG%"=="" @echo off
1820@rem ##########################################################################
···4345%JAVA_EXE% -version >NUL 2>&1
4446if %ERRORLEVEL% equ 0 goto execute
45474646-echo.
4747-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
4848-echo.
4949-echo Please set the JAVA_HOME variable in your environment to match the
5050-echo location of your Java installation.
4848+echo. 1>&2
4949+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
5050+echo. 1>&2
5151+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
5252+echo location of your Java installation. 1>&2
51535254goto fail
5355···57595860if exist "%JAVA_EXE%" goto execute
59616060-echo.
6161-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
6262-echo.
6363-echo Please set the JAVA_HOME variable in your environment to match the
6464-echo location of your Java installation.
6262+echo. 1>&2
6363+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
6464+echo. 1>&2
6565+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
6666+echo location of your Java installation. 1>&2
65676668goto fail
67696870:execute
6971@rem Setup the command line
70727171-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
727373747475@rem Execute Gradle
7575-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
7676+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
76777778:end
7879@rem End local scope for the variables with windows NT shell