diff options
Diffstat (limited to 'bin/plugin.bat')
-rw-r--r-- | bin/plugin.bat | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/plugin.bat b/bin/plugin.bat new file mode 100644 index 0000000..9946fa3 --- /dev/null +++ b/bin/plugin.bat @@ -0,0 +1,22 @@ +@echo off + +SETLOCAL + +if NOT DEFINED JAVA_HOME goto err + +set SCRIPT_DIR=%~dp0 +for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI + + +"%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 |