diff options
| author | Tristan Sloughter <t@crashfast.com> | 2014-12-16 17:38:07 -0600 | 
|---|---|---|
| committer | Tristan Sloughter <t@crashfast.com> | 2014-12-16 17:38:07 -0600 | 
| commit | 31b886e65cd443ea2ee8547fc052e1b6396b4bbd (patch) | |
| tree | e6c13c84c2a24fe1f886e202084bc902c831273e /src | |
| parent | 3998dfb049f8e48c4595b72913837a0b8095a0fe (diff) | |
don't include all */ebin dirs in code path
Diffstat (limited to 'src')
| -rw-r--r-- | src/rebar_core.erl | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/src/rebar_core.erl b/src/rebar_core.erl index fa0e459..eaa546a 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -93,7 +93,14 @@ update_code_path_(Paths) ->  expand_lib_dirs([], _Root, Acc) ->      Acc;  expand_lib_dirs([Dir | Rest], Root, Acc) -> -    Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])), +    %% The current dir should only have an ebin dir. +    %% Other lib dirs contain app directories, so need the wildcard +    Apps = case Dir of +               "." -> +                   [filename:join(Dir, "ebin")]; +               _ -> +                   filelib:wildcard(filename:join([Dir, "*", "ebin"])) +           end,      FqApps = case filename:pathtype(Dir) of                   absolute -> Apps;                   _        -> [filename:join([Root, A]) || A <- Apps] | 
