소스 검색

don't include all */ebin dirs in code path

pull/61/head
Tristan Sloughter 10 년 전
부모
커밋
31b886e65c
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. +8
    -1
      src/rebar_core.erl

+ 8
- 1
src/rebar_core.erl 파일 보기

@ -93,7 +93,14 @@ update_code_path_(Paths) ->
expand_lib_dirs([], _Root, Acc) ->
Acc;
expand_lib_dirs([Dir | Rest], Root, Acc) ->
Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])),
%% The current dir should only have an ebin dir.
%% Other lib dirs contain app directories, so need the wildcard
Apps = case Dir of
"." ->
[filename:join(Dir, "ebin")];
_ ->
filelib:wildcard(filename:join([Dir, "*", "ebin"]))
end,
FqApps = case filename:pathtype(Dir) of
absolute -> Apps;
_ -> [filename:join([Root, A]) || A <- Apps]

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