Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Allow the use of absolute paths in the lib_dirs configuration setting
  • Loading branch information...
commit 271299a4e9f6ac96a4b539c1e7df6fec4b6690f6 2 parents a5be40c + d4164c9
@dizzyd dizzyd authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/rebar_core.erl
View
5 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).
Please sign in to comment.
Something went wrong with that request. Please try again.