diff options
author | Kelly McLaughlin <kelly@kelly-mclaughlin.com> | 2015-02-05 22:02:59 -0700 |
---|---|---|
committer | Kelly McLaughlin <kelly@kelly-mclaughlin.com> | 2015-02-05 22:02:59 -0700 |
commit | 212655c3ecaf73a17e35bb7400e9f088d4d3df69 (patch) | |
tree | 767adfe824679232b4b9053c431f6d54c84f3d18 | |
parent | 4408d8e5029b61923263803457f8990fdb9bb365 (diff) |
Add xref support for multi-app projects
Add xref support for multi-app projects. Instead of only adding the
top-level ebin directory to the xref server use
rebar_state:project_apps/1 to enumerate the applications for the
project and add the ebin directory for each one.
-rw-r--r-- | src/rebar_prv_xref.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_xref.erl b/src/rebar_prv_xref.erl index 32ebf46..49ae70e 100644 --- a/src/rebar_prv_xref.erl +++ b/src/rebar_prv_xref.erl @@ -96,7 +96,8 @@ prepare(State) -> rebar_state:get(State, xref_warnings, false)}, {verbose, rebar_log:is_verbose(State)}]), - {ok, _} = xref:add_directory(xref, "ebin"), + [{ok, _} = xref:add_directory(xref, rebar_app_info:ebin_dir(App)) + || App <- rebar_state:project_apps(State)], %% Save the code path prior to doing any further code path %% manipulation |