summaryrefslogtreecommitdiff
path: root/src/rebar_erlc_compiler.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-05-20 18:27:35 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-05-20 18:27:35 -0500
commit41f31f608dff7837d80674600344d521982b10f4 (patch)
treeab85c0cff4cbaf6cf65a67880d011546c6d1231e /src/rebar_erlc_compiler.erl
parentff071a8df12d0a7bf57ecd4c28b8a18955f74ec5 (diff)
parentd05103a4a878c7c65d9fa90df6a6c223d0542d94 (diff)
Merge pull request #451 from talentdeficit/all_src_dirs
methods for retrieving `src_dirs` and `extra_src_dirs`
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r--src/rebar_erlc_compiler.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index c7a3474..b9072a3 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -143,8 +143,7 @@ doterl_compile(Config, Dir, OutDir, MoreSources, ErlOpts) ->
%% Support the src_dirs option allowing multiple directories to
%% contain erlang source. This might be used, for example, should
%% eunit tests be separated from the core application source.
- SrcDirs = [filename:join(Dir, X) || X <- proplists:get_value(src_dirs, ErlOpts, ["src"]) ++
- proplists:get_value(extra_src_dirs, ErlOpts, [])],
+ SrcDirs = [filename:join(Dir, X) || X <- rebar_dir:all_src_dirs(Config, ["src"], [])],
AllErlFiles = gather_src(SrcDirs, []) ++ MoreSources,
%% Make sure that ebin/ exists and is on the path