浏览代码

Merge pull request #101 from jcomellas/jc-absolute-lib-dirs

Allow the use of absolute paths in the lib_dirs configuration setting
pull/3/head
Dave Smith 12 年前
父节点
当前提交
271299a4e9
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/rebar_core.erl

+ 4
- 1
src/rebar_core.erl 查看文件

@ -412,7 +412,10 @@ expand_lib_dirs([], _Root, Acc) ->
Acc; Acc;
expand_lib_dirs([Dir | Rest], Root, Acc) -> expand_lib_dirs([Dir | Rest], Root, Acc) ->
Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])), Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])),
FqApps = [filename:join([Root, A]) || A <- Apps],
FqApps = case filename:pathtype(Dir) of
absolute -> Apps;
_ -> [filename:join([Root, A]) || A <- Apps]
end,
expand_lib_dirs(Rest, Root, Acc ++ FqApps). expand_lib_dirs(Rest, Root, Acc ++ FqApps).

正在加载...
取消
保存