mirror of
https://github.com/elastic/logstash.git
synced 2025-04-22 05:37:21 -04:00
The work done in #14355 to fix the keystore and plugin scripts erroneously included %JAVA_OPTS% in the command to invoke `jruby`, rather than as an environment variable, which prevented these scripts from operating correctly, due to `jruby.exe` not handling Java options, causing the scripts to crash on invocation. This commit removes the %JAVA_OPTS% - this is already set as an environment variable, and allows the scripts to operate correctly
17 lines
260 B
Batchfile
17 lines
260 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
call "%~dp0setup.bat" || exit /b 1
|
|
if errorlevel 1 (
|
|
if not defined nopauseonerror (
|
|
pause
|
|
)
|
|
exit /B %ERRORLEVEL%
|
|
)
|
|
|
|
%JRUBY_BIN% "%LS_HOME%\lib\pluginmanager\main.rb" %*
|
|
if errorlevel 1 (
|
|
exit /B 1
|
|
)
|
|
|
|
endlocal
|