소스 검색

Fix #197 by printing 'Entering/Leaving directory'

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

+ 19
- 3
src/rebar_core.erl 파일 보기

@ -103,7 +103,14 @@ process_dir(Dir, ParentConfig, Command, DirSet) ->
DirSet;
true ->
?DEBUG("Entering ~s\n", [Dir]),
AbsDir = filename:absname(Dir),
case processing_base_dir(Dir) of
false ->
?CONSOLE("==> Entering directory `~s'\n", [AbsDir]);
true ->
ok
end,
ok = file:set_cwd(Dir),
Config = maybe_load_local_config(Dir, ParentConfig),
@ -118,8 +125,17 @@ process_dir(Dir, ParentConfig, Command, DirSet) ->
%% to process this dir.
{ok, AvailModuleSets} = application:get_env(rebar, modules),
ModuleSet = choose_module_set(AvailModuleSets, Dir),
maybe_process_dir(ModuleSet, Config, CurrentCodePath,
Dir, 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]);
true ->
ok
end,
Res
end.
maybe_process_dir({[], undefined}=ModuleSet, Config, CurrentCodePath,

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