2010-05-03 03:49:50 -04:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
SETLOCAL
|
|
|
|
|
|
|
|
if NOT DEFINED JAVA_HOME goto err
|
|
|
|
|
|
|
|
set SCRIPT_DIR=%~dp0
|
|
|
|
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI
|
|
|
|
|
|
|
|
|
2011-06-09 19:35:00 -04:00
|
|
|
set ES_CLASSPATH=%CLASSPATH%;%ES_HOME%/lib/*
|
2010-05-03 03:49:50 -04:00
|
|
|
set ES_PARAMS=-Delasticsearch -Des.path.home="%ES_HOME%"
|
|
|
|
|
|
|
|
"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% -cp "%ES_CLASSPATH%" "org.elasticsearch.plugins.PluginManager" %*
|
|
|
|
goto finally
|
|
|
|
|
|
|
|
|
|
|
|
:err
|
|
|
|
echo JAVA_HOME environment variable must be set!
|
|
|
|
pause
|
|
|
|
|
|
|
|
|
|
|
|
:finally
|
|
|
|
|
|
|
|
ENDLOCAL
|