diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2015-07-01 17:03:07 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-07-01 17:03:07 +0300 |
| commit | 56e6b4e62e39974785959750d5431b9e517c7868 (patch) | |
| tree | f65cf097b867f4f87865492558ab61e95a73bba0 /scripts/rabbitmq-plugins.bat | |
| parent | d7c625cb563772d0368422a2ad1c5081f60cbde4 (diff) | |
| parent | 2b89dbe8b0ab70cd42f4514a8f4920768feef5f8 (diff) | |
| download | rabbitmq-server-git-56e6b4e62e39974785959750d5431b9e517c7868.tar.gz | |
Merge branch 'rabbitmq-server-154' of https://github.com/Jakauppila/rabbitmq-server into Jakauppila-rabbitmq-server-154
Diffstat (limited to 'scripts/rabbitmq-plugins.bat')
| -rwxr-xr-x | scripts/rabbitmq-plugins.bat | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/scripts/rabbitmq-plugins.bat b/scripts/rabbitmq-plugins.bat index c8e15ad24c..fe7d5c64a9 100755 --- a/scripts/rabbitmq-plugins.bat +++ b/scripts/rabbitmq-plugins.bat @@ -1,4 +1,5 @@ @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
@@ -23,17 +24,9 @@ set TDP0=%~dp0 set STAR=%*
setlocal enabledelayedexpansion
-if "!RABBITMQ_SERVICENAME!"=="" (
- set RABBITMQ_SERVICENAME=RabbitMQ
-)
-
-if "!RABBITMQ_BASE!"=="" (
- set RABBITMQ_BASE=!APPDATA!\!RABBITMQ_SERVICENAME!
-)
-
-if "!RABBITMQ_NODENAME!"=="" (
- set RABBITMQ_NODENAME=rabbit@!COMPUTERNAME!
-)
+REM Get default settings with user overrides for (RABBITMQ_)<var_name>
+REM Non-empty defaults should be set in rabbitmq-env
+call "%cd%\rabbitmq-env.bat"
if not exist "!ERLANG_HOME!\bin\erl.exe" (
echo.
@@ -47,14 +40,6 @@ if not exist "!ERLANG_HOME!\bin\erl.exe" ( exit /B 1
)
-if "!RABBITMQ_ENABLED_PLUGINS_FILE!"=="" (
- set RABBITMQ_ENABLED_PLUGINS_FILE=!RABBITMQ_BASE!\enabled_plugins
-)
-
-if "!RABBITMQ_PLUGINS_DIR!"=="" (
- set RABBITMQ_PLUGINS_DIR=!TDP0!..\plugins
-)
-
"!ERLANG_HOME!\bin\erl.exe" ^
-pa "!TDP0!..\ebin" ^
-noinput ^
|
