浏览代码

add included applications to app_info applications element

pull/17/head
Tristan Sloughter 10 年前
父节点
当前提交
fb630d18ea
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/rebar_app_discover.erl

+ 2
- 1
src/rebar_app_discover.erl 查看文件

@ -120,6 +120,7 @@ create_app_info(AppDir, AppFile) ->
{ok, [{application, AppName, AppDetails}]} ->
AppVsn = proplists:get_value(vsn, AppDetails),
Applications = proplists:get_value(applications, AppDetails, []),
IncludedApplications = proplists:get_value(included_applications, AppDetails, []),
C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:new(), C, AppDir),
AppDeps = rebar_state:deps_names(S),
@ -136,7 +137,7 @@ create_app_info(AppDir, AppFile) ->
AppState1 = rebar_state:set(AppState, base_dir, AbsCwd),
AppInfo1 = rebar_app_info:applications(rebar_app_info:config(
rebar_app_info:app_details(AppInfo, AppDetails)
,AppState1), Applications),
,AppState1), IncludedApplications++Applications),
rebar_app_info:dir(AppInfo1, AppDir);
_ ->
error

正在加载...
取消
保存