diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-13 18:20:05 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-13 18:25:02 +0100 |
commit | 0689928527dd703e2b589613b52634e8ab15996f (patch) | |
tree | ea69fe695fb57b33da31af67f90c3ab4fc586afb /src | |
parent | cab1671ea0a862c3f43ecde5acdafd0893f15d9e (diff) |
Warn if we ignore a skip_dir's sub_dirs
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_subdirs.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rebar_subdirs.erl b/src/rebar_subdirs.erl index 13446ab..fb23636 100644 --- a/src/rebar_subdirs.erl +++ b/src/rebar_subdirs.erl @@ -38,11 +38,14 @@ preprocess(Config, _) -> %% Get the list of subdirs specified in the config (if any). Cwd = rebar_utils:get_cwd(), - case rebar_core:is_skip_dir(Cwd) of - true -> + Subdirs0 = rebar_config:get_local(Config, sub_dirs, []), + case {rebar_core:is_skip_dir(Cwd), Subdirs0} of + {true, []} -> {ok, []}; - false -> - Subdirs0 = rebar_config:get_local(Config, sub_dirs, []), + {true, _} -> + ?WARN("Ignoring sub_dirs for ~s~n", [Cwd]), + {ok, []}; + {false, _} -> Check = check_loop(Cwd), ok = lists:foreach(Check, Subdirs0), Subdirs = [filename:join(Cwd, Dir) || Dir <- Subdirs0], |