mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
when using plugin_modules, add ebin to path
This commit is contained in:
parent
66f44c6362
commit
89b57e3aa4
1 changed files with 6 additions and 0 deletions
|
@ -332,6 +332,12 @@ choose_module_set([{Fn, Modules} | Rest], Dir) ->
|
||||||
%%
|
%%
|
||||||
plugin_modules(Config) ->
|
plugin_modules(Config) ->
|
||||||
Modules = lists:flatten(rebar_config:get_all(Config, rebar_plugins)),
|
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],
|
FoundModules = [M || M <- Modules, code:which(M) =/= non_existing],
|
||||||
case (Modules =:= FoundModules) of
|
case (Modules =:= FoundModules) of
|
||||||
true ->
|
true ->
|
||||||
|
|
Loading…
Reference in a new issue