summaryrefslogtreecommitdiff
path: root/packaging/standalone
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-11-25 17:18:56 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-11-25 17:18:56 +0100
commitdfcde198635dfcc49db6eca5dfbd1f5a8480b767 (patch)
tree00d39fecfa91054e3834174cc7680aca6b588b30 /packaging/standalone
parentf40539ea26c043717a7555be055fc0dc9e88d310 (diff)
downloadrabbitmq-server-git-dfcde198635dfcc49db6eca5dfbd1f5a8480b767.tar.gz
packaging/standalone: Take broker dependencies into account
While here, use the new rabbit_plugins:list/2 API to remove the hard-coded list of broker direct dependencies.
Diffstat (limited to 'packaging/standalone')
-rw-r--r--packaging/standalone/src/rabbit_release.erl14
1 files changed, 9 insertions, 5 deletions
diff --git a/packaging/standalone/src/rabbit_release.erl b/packaging/standalone/src/rabbit_release.erl
index 4e16fd52b5..9eed1a59fa 100644
--- a/packaging/standalone/src/rabbit_release.erl
+++ b/packaging/standalone/src/rabbit_release.erl
@@ -40,8 +40,8 @@ start() ->
%% add the plugin ebin folder to the code path.
add_plugins_to_path(UnpackedPluginDir),
- PluginAppNames = [rabbit_common | [P#plugin.name ||
- P <- rabbit_plugins:list(PluginsDistDir)]],
+ PluginAppNames = [P#plugin.name ||
+ P <- rabbit_plugins:list(PluginsDistDir, false)],
%% Build the entire set of dependencies - this will load the
%% applications along the way
@@ -54,11 +54,15 @@ start() ->
end,
%% we need a list of ERTS apps we need to ship with rabbit
+ RabbitMQAppNames = [rabbit | [P#plugin.name ||
+ P <- rabbit_plugins:list(PluginsDistDir, true)]]
+ -- PluginAppNames,
{ok, SslAppsConfig} = application:get_env(rabbit, ssl_apps),
- BaseApps = lists:umerge(
+ BaseApps = lists:umerge([
+ lists:sort(RabbitMQAppNames),
lists:sort(SslAppsConfig),
- lists:sort(AllApps -- PluginAppNames)),
+ lists:sort(AllApps -- PluginAppNames)]),
AppVersions = [determine_version(App) || App <- BaseApps],
RabbitVersion = proplists:get_value(rabbit, AppVersions),
@@ -111,7 +115,7 @@ prepare_plugins(PluginsDistDir, DestDir) ->
end,
[prepare_plugin(Plugin, DestDir) ||
- Plugin <- rabbit_plugins:list(PluginsDistDir)].
+ Plugin <- rabbit_plugins:list(PluginsDistDir, true)].
prepare_plugin(#plugin{type = ez, location = Location}, PluginDestDir) ->
zip:unzip(Location, [{cwd, PluginDestDir}]);