Browse Source

Use erlang:function_exported/3

pull/3/head
Tuncer Ayaz 14 years ago
parent
commit
3356c2d9e8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rebar_core.erl

+ 2
- 2
src/rebar_core.erl View File

@ -280,8 +280,8 @@ expand_lib_dirs([Dir | Rest], Root, Acc) ->
select_modules([], _Command, Acc) ->
lists:reverse(Acc);
select_modules([Module | Rest], Command, Acc) ->
Exports = Module:module_info(exports),
case lists:member({Command, 2}, Exports) of
{module, Module} = code:ensure_loaded(Module),
case erlang:function_exported(Module, Command, 2) of
true ->
select_modules(Rest, Command, [Module | Acc]);
false ->

Loading…
Cancel
Save