Skip to content

Commit

Permalink
Allow the use of absolute paths in the lib_dirs configuration setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcomellas committed Jun 18, 2013
1 parent a5be40c commit 708c190
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rebar_core.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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).


Expand Down

0 comments on commit 708c190

Please sign in to comment.