diff options
author | Juan Jose Comellas <juanjo@comellas.org> | 2013-06-18 18:03:30 -0300 |
---|---|---|
committer | Juan Jose Comellas <juanjo@comellas.org> | 2013-06-18 18:03:30 -0300 |
commit | 708c190faad4f992601eca3d5a9d0b8000390d28 (patch) | |
tree | 3f338b060f1fd79bb31bf57aaf656d86448415e0 | |
parent | a5be40c9698dc16b683d7d99840a023fc04c31a9 (diff) |
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..44e434d 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; + relative -> [filename:join([Root, A]) || A <- Apps] + end, expand_lib_dirs(Rest, Root, Acc ++ FqApps). |