summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-plugin.bat
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-09 12:11:54 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-09 12:11:54 +0100
commitaaa1c65236c48b856a6c900b74621777a785c18b (patch)
tree465b9da3dc2dc1bebf2bb5ba407b1d5be0efad90 /scripts/rabbitmq-plugin.bat
parentab2f7d3b940f8ab13287faa5057d6047a58abcf4 (diff)
downloadrabbitmq-server-git-aaa1c65236c48b856a6c900b74621777a785c18b.tar.gz
pass PLUGINS_DIR and PLUGINS_DIST_DIR to rabbitmq-plugin
Diffstat (limited to 'scripts/rabbitmq-plugin.bat')
-rwxr-xr-xscripts/rabbitmq-plugin.bat7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/rabbitmq-plugin.bat b/scripts/rabbitmq-plugin.bat
index e557501f68..0aaad0ef3c 100755
--- a/scripts/rabbitmq-plugin.bat
+++ b/scripts/rabbitmq-plugin.bat
@@ -26,7 +26,7 @@ setlocal enabledelayedexpansion
if not exist "!ERLANG_HOME!\bin\erl.exe" (
echo.
echo ******************************
- echo ERLANG_HOME not set correctly.
+ echo ERLANG_HOME not set correctly.
echo ******************************
echo.
echo Please either set ERLANG_HOME to point to your Erlang installation or place the
@@ -35,7 +35,10 @@ if not exist "!ERLANG_HOME!\bin\erl.exe" (
exit /B
)
-"!ERLANG_HOME!\bin\erl.exe" -pa "!TDP0!..\ebin" -noinput -hidden -sname rabbitmq-plugin!RANDOM! -s rabbit_plugin -extra !STAR!
+set RABBITMQ_PLUGINS_DIR=!TDP0!..\plugins
+set RABBITMQ_PLUGINS_DIST_DIR=!TDP0!..\provided_plugins
+
+"!ERLANG_HOME!\bin\erl.exe" -pa "!TDP0!..\ebin" -noinput -hidden -sname rabbitmq-plugin!RANDOM! -s rabbit_plugin -plugins_dir "!RABBITMQ_PLUGINS_DIR:\=/!" -plugins_dist_dir "!RABBITMQ_PLUGINS_DIST_DIR:\=/!" -extra !STAR!
endlocal
endlocal