summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-05-15 21:38:12 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-05-15 21:38:12 -0500
commit162f0f8f63c99c6a9800ef1911060fad8b257b8b (patch)
treeeb77628b72080f1010021649b16468c16dd78acb
parent45389be7de540ae5632e3f3d889b49c9f9acf20b (diff)
parent39513a5293ad75d155b84d2f2284a9fbc5036ffd (diff)
Merge pull request #432 from soranoba/edoclet-in-deps
be able to use the specified edoclet in deps
-rw-r--r--src/rebar_prv_edoc.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_prv_edoc.erl b/src/rebar_prv_edoc.erl
index c9b89f0..efcfeb5 100644
--- a/src/rebar_prv_edoc.erl
+++ b/src/rebar_prv_edoc.erl
@@ -9,7 +9,7 @@
-include("rebar.hrl").
-define(PROVIDER, edoc).
--define(DEPS, [app_discovery]).
+-define(DEPS, [compile]).
%% ===================================================================
%% Public API
@@ -29,6 +29,7 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
+ code:add_pathsa(rebar_state:code_paths(State, all_deps)),
ProjectApps = rebar_state:project_apps(State),
EDocOpts = rebar_state:get(State, edoc_opts, []),
lists:foreach(fun(AppInfo) ->
@@ -37,6 +38,7 @@ do(State) ->
AppDir = rebar_app_info:dir(AppInfo),
ok = edoc:application(list_to_atom(AppName), AppDir, EDocOpts)
end, ProjectApps),
+ rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)),
{ok, State}.
-spec format_error(any()) -> iolist().