Ver código fonte

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.
pull/128/head
Kelly McLaughlin 10 anos atrás
pai
commit
212655c3ec
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      src/rebar_prv_xref.erl

+ 2
- 1
src/rebar_prv_xref.erl Ver arquivo

@ -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

Carregando…
Cancelar
Salvar