소스 검색

Do not warn if pre_/post_ cmd is not available

pull/3/head
Tuncer Ayaz 14 년 전
부모
커밋
1ec92ebac3
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. +9
    -2
      src/rebar_core.erl

+ 9
- 2
src/rebar_core.erl 파일 보기

@ -241,8 +241,15 @@ execute_plugin_hook(Hook, Command, Modules, Config, ModuleFile) ->
execute(Command, Modules, Config, ModuleFile) ->
case select_modules(Modules, Command, []) of
[] ->
?WARN("'~p' command does not apply to directory ~s\n",
[Command, rebar_utils:get_cwd()]);
Cmd = atom_to_list(Command),
case lists:prefix("pre_", Cmd)
orelse lists:prefix("post_", Cmd) of
true ->
ok;
false ->
?WARN("'~p' command does not apply to directory ~s\n",
[Command, rebar_utils:get_cwd()])
end;
TargetModules ->
%% Provide some info on where we are

불러오는 중...
취소
저장