Ignore sub_dirs in skip_dirs

This commit is contained in:
Tuncer Ayaz 2012-01-09 19:34:27 +01:00
parent 87669b6b7f
commit 45555eb6ae

View file

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