summaryrefslogtreecommitdiff
path: root/src/rebar_app_discover.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r--src/rebar_app_discover.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index 4005612..a3a9168 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -119,7 +119,7 @@ create_app_info(AppDir, AppFile) ->
case file:consult(AppFile) of
{ok, [{application, AppName, AppDetails}]} ->
AppVsn = proplists:get_value(vsn, AppDetails),
- %AppDeps = proplists:get_value(applications, AppDetails, []),
+ Applications = proplists:get_value(applications, AppDetails, []),
C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:new(), C, AppDir),
AppDeps = rebar_state:deps_names(S),
@@ -134,8 +134,9 @@ create_app_info(AppDir, AppFile) ->
rebar_state:new()
end,
AppState1 = rebar_state:set(AppState, base_dir, AbsCwd),
- AppInfo1 = rebar_app_info:config(
- rebar_app_info:app_details(AppInfo, AppDetails), AppState1),
+ AppInfo1 = rebar_app_info:applications(rebar_app_info:config(
+ rebar_app_info:app_details(AppInfo, AppDetails)
+ ,AppState1), Applications),
rebar_app_info:dir(AppInfo1, AppDir);
_ ->
error