diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-05-20 18:27:35 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-05-20 18:27:35 -0500 |
commit | 41f31f608dff7837d80674600344d521982b10f4 (patch) | |
tree | ab85c0cff4cbaf6cf65a67880d011546c6d1231e /src/rebar_otp_app.erl | |
parent | ff071a8df12d0a7bf57ecd4c28b8a18955f74ec5 (diff) | |
parent | d05103a4a878c7c65d9fa90df6a6c223d0542d94 (diff) |
Merge pull request #451 from talentdeficit/all_src_dirs
methods for retrieving `src_dirs` and `extra_src_dirs`
Diffstat (limited to 'src/rebar_otp_app.erl')
-rw-r--r-- | src/rebar_otp_app.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_otp_app.erl b/src/rebar_otp_app.erl index e5ad1d2..c457999 100644 --- a/src/rebar_otp_app.erl +++ b/src/rebar_otp_app.erl @@ -160,9 +160,8 @@ ebin_modules(State, App, Dir) -> [rebar_utils:beam_to_mod(N) || N <- Filtered]. extra_dirs(State) -> - ErlOpts = rebar_utils:erl_opts(State), - Extras = proplists:get_value(extra_src_dirs, ErlOpts, []), - SrcDirs = proplists:get_value(src_dirs, ErlOpts, ["src"]), + Extras = rebar_dir:extra_src_dirs(State), + SrcDirs = rebar_dir:src_dirs(State, ["src"]), %% remove any dirs that are defined in `src_dirs` from `extra_src_dirs` Extras -- SrcDirs. |