Преглед на файлове

Use erlang:function_exported/3

pull/3/head
Tuncer Ayaz преди 14 години
родител
ревизия
3356c2d9e8
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/rebar_core.erl

+ 2
- 2
src/rebar_core.erl Целия файл

@ -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 ->

Зареждане…
Отказ
Запис