summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2010-05-11 12:33:52 -0700
committerBob Ippolito <bob@redivi.com>2010-05-11 12:33:52 -0700
commit89b57e3aa47a425a4cc49cfd7db1099cdb8e619b (patch)
treead0b6ac74f52168122ac0954381fe2d282c993fa /src
parent66f44c6362cbe78457826f039aa955876d338f64 (diff)
when using plugin_modules, add ebin to path
Diffstat (limited to 'src')
-rw-r--r--src/rebar_core.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl
index f925d98..747a0ab 100644
--- a/src/rebar_core.erl
+++ b/src/rebar_core.erl
@@ -332,6 +332,12 @@ choose_module_set([{Fn, Modules} | Rest], Dir) ->
%%
plugin_modules(Config) ->
Modules = lists:flatten(rebar_config:get_all(Config, rebar_plugins)),
+ plugin_modules(Config, Modules).
+
+plugin_modules(_Config, []) ->
+ {ok, []};
+plugin_modules(Config, Modules) ->
+ code:add_path(filename:join([rebar_utils:get_cwd(), "ebin"])),
FoundModules = [M || M <- Modules, code:which(M) =/= non_existing],
case (Modules =:= FoundModules) of
true ->