Просмотр исходного кода

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 лет назад
Родитель
Сommit
212655c3ec
1 измененных файлов: 2 добавлений и 1 удалений
  1. +2
    -1
      src/rebar_prv_xref.erl

+ 2
- 1
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

Загрузка…
Отмена
Сохранить