tools convert to batch files (#11753)

Fixes #11754
This commit is contained in:
André Letterer 2020-04-05 00:11:21 +02:00 committed by Colin Surprenant
parent e06d2195d0
commit ba89b217e5
4 changed files with 79 additions and 0 deletions

11
bin/benchmark.bat Normal file
View file

@ -0,0 +1,11 @@
rem @echo off
setlocal enabledelayedexpansion
cd /d "%~dp0.."
for /f %%i in ('cd') do set RESULT=%%i
echo !!RESULT!!
java -cp "!!RESULT!!\tools\benchmark-cli\build\libs\benchmark-cli.jar;*" ^
org.logstash.benchmark.cli.Main %*
endlocal

10
bin/ingest-convert.bat Normal file
View file

@ -0,0 +1,10 @@
@echo off
setlocal enabledelayedexpansion
cd /d "%~dp0\.."
for /f %%i in ('cd') do set RESULT=%%i
java -cp "!!RESULT!!\tools\ingest-converter\build\libs\ingest-converter.jar;*" ^
org.logstash.ingest.Pipeline %*
endlocal

29
bin/pqcheck.bat Normal file
View file

@ -0,0 +1,29 @@
@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"
)
%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" org.logstash.ackedqueue.PqCheck %*
:concat
IF not defined CLASSPATH (
set CLASSPATH="%~1"
) ELSE (
set CLASSPATH=%CLASSPATH%;"%~1"
)
goto :eof
endlocal

29
bin/pqrepair.bat Normal file
View file

@ -0,0 +1,29 @@
@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"
)
%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" org.logstash.ackedqueue.PqRepair %*
:concat
IF not defined CLASSPATH (
set CLASSPATH="%~1"
) ELSE (
set CLASSPATH=%CLASSPATH%;"%~1"
)
goto :eof
endlocal