瀏覽代碼

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 年之前
父節點
當前提交
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)}, rebar_state:get(State, xref_warnings, false)},
{verbose, rebar_log:is_verbose(State)}]), {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 %% Save the code path prior to doing any further code path
%% manipulation %% manipulation

Loading…
取消
儲存