From 4025eca47e6f80316e7f4c63efc93e7195f419e4 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 25 Jan 2013 14:10:52 -0800 Subject: support the discover task searching the output dir This has the potential to save a lot of time and make future release upgrading much simpler for the user. --- src/rcl_prv_discover.erl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/rcl_prv_discover.erl') diff --git a/src/rcl_prv_discover.erl b/src/rcl_prv_discover.erl index 595902a..862bd6e 100644 --- a/src/rcl_prv_discover.erl +++ b/src/rcl_prv_discover.erl @@ -42,14 +42,13 @@ init(State) -> %% looking for OTP Applications -spec do(rcl_state:t()) -> {ok, rcl_state:t()} | relcool:error(). do(State) -> - OutputDir = rcl_state:output_dir(State), LibDirs = get_lib_dirs(State), rcl_log:info(rcl_state:log(State), fun() -> ["Resolving OTP Applications from directories:\n", [[rcl_util:indent(1), LibDir, "\n"] || LibDir <- LibDirs]] end), - resolve_app_metadata(State, LibDirs, OutputDir). + resolve_app_metadata(State, LibDirs). -spec format_error([ErrorDetail::term()]) -> iolist(). format_error(ErrorDetails) @@ -59,10 +58,9 @@ format_error(ErrorDetails) %%%=================================================================== %%% Internal Functions %%%=================================================================== -resolve_app_metadata(State, LibDirs, OutputDir) -> +resolve_app_metadata(State, LibDirs) -> AppMeta0 = lists:flatten(ec_plists:map(fun(LibDir) -> - discover_dir([OutputDir], - LibDir) + discover_dir([], LibDir) end, LibDirs)), AppMeta1 = setup_overrides(State, AppMeta0), -- cgit v1.2.3