diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-05-18 19:56:02 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-05-18 19:56:02 +0200 |
commit | 4f6ea2fd112d83d8f154777c469f3e13a5be3aa0 (patch) | |
tree | 53f834e80229016f19e154b3d6aa063044777bfb /src | |
parent | 635d1a9456dc475116b5a5568fc4ab883d09dd8a (diff) |
Do not print entering/leaving message if skip_dir
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_core.erl | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 484b446..1d5599a 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -104,10 +104,17 @@ process_dir(Dir, ParentConfig, Command, DirSet) -> true -> AbsDir = filename:absname(Dir), - case processing_base_dir(Dir) of - false -> - ?CONSOLE("==> Entering directory `~s'\n", [AbsDir]); + ShouldPrintDir = case {is_skip_dir(Dir), processing_base_dir(Dir)} of + {false, false} -> + true; + _ -> + false + end, + + case ShouldPrintDir of true -> + ?CONSOLE("==> Entering directory `~s'\n", [AbsDir]); + _ -> ok end, @@ -128,10 +135,10 @@ process_dir(Dir, ParentConfig, Command, DirSet) -> Res = maybe_process_dir(ModuleSet, Config, CurrentCodePath, Dir, Command, DirSet), - case processing_base_dir(Dir) of - false -> - ?CONSOLE("==> Leaving directory `~s'\n", [AbsDir]); + case ShouldPrintDir of true -> + ?CONSOLE("==> Leaving directory `~s'\n", [AbsDir]); + false -> ok end, |