Permalink
Browse files

don't use CLASSPATH in plugin, and simplify plugin.bat

  • Loading branch information...
1 parent 28c9595 commit e0acf13a124af9f85e7a46a6f78e494fe1643ca0 @kimchy kimchy committed Nov 13, 2011
Showing with 2 additions and 7 deletions.
  1. +1 −3 bin/plugin
  2. +1 −4 bin/plugin.bat
View
@@ -28,6 +28,4 @@ else
JAVA=`which java`
fi
-CLASSPATH=$CLASSPATH:$ES_HOME/lib/*
-
-exec $JAVA -Delasticsearch -Des.path.home="$ES_HOME" -cp $CLASSPATH org.elasticsearch.plugins.PluginManager $*
+exec $JAVA -Delasticsearch -Des.path.home="$ES_HOME" -cp $ES_HOME/lib/* org.elasticsearch.plugins.PluginManager $*
View
@@ -8,10 +8,7 @@ set SCRIPT_DIR=%~dp0
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI
-set ES_CLASSPATH=%CLASSPATH%;%ES_HOME%/lib/*
-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" %*
+"%JAVA_HOME%\bin\java" -Des.path.home="%ES_HOME%" -cp "%ES_HOME%/lib/*" "org.elasticsearch.plugins.PluginManager" %*
goto finally

0 comments on commit e0acf13

Please sign in to comment.