logstash/bin/pqcheck.bat
github-actions[bot] ae83326dc2
Add quotes to fix path handling in pqcheck.bat (#16205) (#16292)
(cherry picked from commit bc0b9556bd)

Co-authored-by: Alex S <Terilia@users.noreply.github.com>
2024-07-04 09:10:44 +01:00

29 lines
482 B
Batchfile

@echo off
setlocal enabledelayedexpansion
call "%~dp0setup.bat" || exit /b 1
if errorlevel 1 (
if not defined nopauseonerror (
pause
)
exit /B %ERRORLEVEL%
)
set JAVA_OPTS=%LS_JAVA_OPTS%
for %%i in ("%LS_HOME%\logstash-core\lib\jars\*.jar") do (
call :concat "%%i"
)
"%JAVACMD%" "%JAVA_OPTS%" -cp "%CLASSPATH%" org.logstash.ackedqueue.PqCheck %*
:concat
IF not defined CLASSPATH (
set CLASSPATH="%~1"
) ELSE (
set CLASSPATH=%CLASSPATH%;"%~1"
)
goto :eof
endlocal