mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
0a58781d2d
When launching multiple nodes in MS Windows env, batch command window does not come by default with any title. This patch add `Elasticsearch VERSION` as a title, where VERSION is the current elasticsearch version. Same for `plugin.bat` and `service.bat`. Closes #6336 Closes #6752
24 lines
428 B
Batchfile
24 lines
428 B
Batchfile
@echo off
|
|
|
|
SETLOCAL
|
|
|
|
if NOT DEFINED JAVA_HOME goto err
|
|
|
|
set SCRIPT_DIR=%~dp0
|
|
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI
|
|
|
|
TITLE Elasticsearch Plugin Manager ${project.version}
|
|
|
|
"%JAVA_HOME%\bin\java" %JAVA_OPTS% -Xmx64m -Xms16m -Des.path.home="%ES_HOME%" -cp "%ES_HOME%/lib/*;" "org.elasticsearch.plugins.PluginManager" %*
|
|
goto finally
|
|
|
|
|
|
:err
|
|
echo JAVA_HOME environment variable must be set!
|
|
pause
|
|
|
|
|
|
:finally
|
|
|
|
ENDLOCAL
|