소스 검색

Ignore sub_dirs in skip_dirs

pull/3/head
Tuncer Ayaz 13 년 전
부모
커밋
45555eb6ae
1개의 변경된 파일10개의 추가작업 그리고 5개의 파일을 삭제
  1. +10
    -5
      src/rebar_subdirs.erl

+ 10
- 5
src/rebar_subdirs.erl 파일 보기

@ -38,11 +38,16 @@
preprocess(Config, _) ->
%% Get the list of subdirs specified in the config (if any).
Cwd = rebar_utils:get_cwd(),
Subdirs0 = rebar_config:get_local(Config, sub_dirs, []),
Check = check_loop(Cwd),
ok = lists:foreach(Check, Subdirs0),
Subdirs = [filename:join(Cwd, Dir) || Dir <- Subdirs0],
{ok, Subdirs}.
case rebar_core:is_skip_dir(Cwd) of
true ->
{ok, []};
false ->
Subdirs0 = rebar_config:get_local(Config, sub_dirs, []),
Check = check_loop(Cwd),
ok = lists:foreach(Check, Subdirs0),
Subdirs = [filename:join(Cwd, Dir) || Dir <- Subdirs0],
{ok, Subdirs}
end.
%% ===================================================================
%% Internal functions

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