Skip to content

Commit

Permalink
Modify command window title (windows)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dadoonet committed Jul 9, 2014
1 parent 386a143 commit 0a58781
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/elasticsearch.bat
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ set JAVA_OPTS=%JAVA_OPTS% -XX:+DisableExplicitGC
set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/${project.build.finalName}.jar;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/*
set ES_PARAMS=-Delasticsearch -Des-foreground=yes -Des.path.home="%ES_HOME%"

TITLE Elasticsearch ${project.version}

"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% %* -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.Elasticsearch"
goto finally

Expand Down
1 change: 1 addition & 0 deletions bin/plugin.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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
Expand Down
2 changes: 2 additions & 0 deletions bin/service.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ set SERVICE_ID=%1

if "%LOG_OPTS%" == "" set LOG_OPTS=--LogPath "%LOG_DIR%" --LogPrefix "%SERVICE_ID%" --StdError auto --StdOutput auto

TITLE Elasticsearch Service ${project.version}

if /i %SERVICE_CMD% == install goto doInstall
if /i %SERVICE_CMD% == remove goto doRemove
if /i %SERVICE_CMD% == start goto doStart
Expand Down

0 comments on commit 0a58781

Please sign in to comment.