]> nmode's Git Repositories - signal-cli/blobdiff - gradlew.bat
Close attachment input streams after upload
[signal-cli] / gradlew.bat
index 53a6b238d414d91c30c5644c82393d27416fbbe6..5eed7ee8452842305a18a4eb967442683808226a 100644 (file)
@@ -13,6 +13,8 @@
 @rem See the License for the specific language governing permissions and\r
 @rem limitations under the License.\r
 @rem\r
+@rem SPDX-License-Identifier: Apache-2.0\r
+@rem\r
 \r
 @if "%DEBUG%"=="" @echo off\r
 @rem ##########################################################################\r
@@ -26,6 +28,7 @@ if "%OS%"=="Windows_NT" setlocal
 \r
 set DIRNAME=%~dp0\r
 if "%DIRNAME%"=="" set DIRNAME=.\r
+@rem This is normally unused\r
 set APP_BASE_NAME=%~n0\r
 set APP_HOME=%DIRNAME%\r
 \r
@@ -42,11 +45,11 @@ set JAVA_EXE=java.exe
 %JAVA_EXE% -version >NUL 2>&1\r
 if %ERRORLEVEL% equ 0 goto execute\r
 \r
-echo.\r
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r
-echo.\r
-echo Please set the JAVA_HOME variable in your environment to match the\r
-echo location of your Java installation.\r
+echo. 1>&2\r
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2\r
+echo. 1>&2\r
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2\r
+echo location of your Java installation. 1>&2\r
 \r
 goto fail\r
 \r
@@ -56,22 +59,22 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
 \r
 if exist "%JAVA_EXE%" goto execute\r
 \r
-echo.\r
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r
-echo.\r
-echo Please set the JAVA_HOME variable in your environment to match the\r
-echo location of your Java installation.\r
+echo. 1>&2\r
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2\r
+echo. 1>&2\r
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2\r
+echo location of your Java installation. 1>&2\r
 \r
 goto fail\r
 \r
 :execute\r
 @rem Setup the command line\r
 \r
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar\r
+set CLASSPATH=\r
 \r
 \r
 @rem Execute Gradle\r
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*\r
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*\r
 \r
 :end\r
 @rem End local scope for the variables with windows NT shell\r