summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-01-09 19:34:27 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-01-10 11:24:09 +0100
commit45555eb6ae7035a68b70343a57294da536e7795c (patch)
treefbee34fd58491015fbab1dad15e6b9e48ed73ecf /src
parent87669b6b7fd4b70d3e9a8fb87c58e470b4cc8c8a (diff)
Ignore sub_dirs in skip_dirs
Diffstat (limited to 'src')
-rw-r--r--src/rebar_subdirs.erl15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/rebar_subdirs.erl b/src/rebar_subdirs.erl
index 119dacb..13446ab 100644
--- a/src/rebar_subdirs.erl
+++ b/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