Skip to content

Commit

Permalink
tools convert to batch files (#11753) (#11901)
Browse files Browse the repository at this point in the history
Relates #11754

Co-authored-by: André Letterer <andre.letterer@web.de>
  • Loading branch information
robbavey and 111andre111 authored May 18, 2020
1 parent d11d472 commit 556498e
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/benchmark.bat
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions bin/ingest-convert.bat
Original file line number Diff line number Diff line change
@@ -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 changes: 29 additions & 0 deletions bin/pqcheck.bat
Original file line number Diff line number Diff line change
@@ -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 changes: 29 additions & 0 deletions bin/pqrepair.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 556498e

Please sign in to comment.