summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-plugins.bat
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-22 17:34:25 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-22 17:34:25 +0100
commit8aff707c85ce7049d2cbb6aef920e59e9b2d3606 (patch)
tree0e27cc4547d0d8ffe2c8a6c8bb150bda0ca3f86e /scripts/rabbitmq-plugins.bat
parent1b69e1fa1527fe559130f07b31c3002d8d634b93 (diff)
parentda265ac0ec05eef8a2fb8e3b521a7e488e7a285f (diff)
downloadrabbitmq-server-git-8aff707c85ce7049d2cbb6aef920e59e9b2d3606.tar.gz
merge default into bug21319
Diffstat (limited to 'scripts/rabbitmq-plugins.bat')
-rwxr-xr-xscripts/rabbitmq-plugins.bat47
1 files changed, 47 insertions, 0 deletions
diff --git a/scripts/rabbitmq-plugins.bat b/scripts/rabbitmq-plugins.bat
new file mode 100755
index 0000000000..8455a7dc90
--- /dev/null
+++ b/scripts/rabbitmq-plugins.bat
@@ -0,0 +1,47 @@
+@echo off
+REM The contents of this file are subject to the Mozilla Public License
+REM Version 1.1 (the "License"); you may not use this file except in
+REM compliance with the License. You may obtain a copy of the License
+REM at http://www.mozilla.org/MPL/
+REM
+REM Software distributed under the License is distributed on an "AS IS"
+REM basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+REM the License for the specific language governing rights and
+REM limitations under the License.
+REM
+REM The Original Code is RabbitMQ.
+REM
+REM The Initial Developer of the Original Code is VMware, Inc.
+REM Copyright (c) 2007-2011 VMware, Inc. All rights reserved.
+REM
+
+setlocal
+
+rem Preserve values that might contain exclamation marks before
+rem enabling delayed expansion
+set TDP0=%~dp0
+set STAR=%*
+setlocal enabledelayedexpansion
+
+if not exist "!ERLANG_HOME!\bin\erl.exe" (
+ echo.
+ echo ******************************
+ echo ERLANG_HOME not set correctly.
+ echo ******************************
+ echo.
+ echo Please either set ERLANG_HOME to point to your Erlang installation or place the
+ echo RabbitMQ server distribution in the Erlang lib folder.
+ echo.
+ exit /B
+)
+
+if "!RABBITMQ_ENABLED_PLUGINS_FILE!"=="" (
+ set RABBITMQ_ENABLED_PLUGINS_FILE=!RABBITMQ_BASE!\enabled_plugins
+)
+
+set RABBITMQ_PLUGINS_DIST_DIR=!TDP0!..\plugins-dist
+
+"!ERLANG_HOME!\bin\erl.exe" -pa "!TDP0!..\ebin" -noinput -hidden -sname rabbitmq-plugins!RANDOM! -s rabbit_plugins -enabled_plugins_file "!RABBITMQ_ENABLED_PLUGINS_FILE!" -plugins_dist_dir "!RABBITMQ_PLUGINS_DIST_DIR:\=/!" -extra !STAR!
+
+endlocal
+endlocal