diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2013-06-18 15:25:53 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2013-06-18 15:25:53 -0700 |
commit | 271299a4e9f6ac96a4b539c1e7df6fec4b6690f6 (patch) | |
tree | 7a2075a2fcf7844c15f27ea723f0cf2a7173b64c | |
parent | a5be40c9698dc16b683d7d99840a023fc04c31a9 (diff) | |
parent | d4164c960655762a794f1bc2b0a08c7f8b939c3f (diff) |
Merge pull request #101 from jcomellas/jc-absolute-lib-dirs
Allow the use of absolute paths in the lib_dirs configuration setting
-rw-r--r-- | src/rebar_core.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 3172d64..61e8412 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -412,7 +412,10 @@ expand_lib_dirs([], _Root, Acc) -> Acc; expand_lib_dirs([Dir | Rest], Root, Acc) -> 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). |