diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-05-17 21:09:41 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-05-17 21:09:41 -0500 |
commit | bf1650e10db9249cab01bb8f6d726d0458555aa5 (patch) | |
tree | 42a4dd3a77e561ba3cb49b67f90e610b2861ecb1 /src/rebar_prv_compile.erl | |
parent | 9ad3025c85148cc2bb0b79a66636071db960729d (diff) | |
parent | 2f2c11ae70d788fd6da43592a87fa917243bfa92 (diff) |
Merge pull request #439 from talentdeficit/extra_src_dirs
generalize the "test" special dir into an {extra_src_dirs, [...]} option
Diffstat (limited to 'src/rebar_prv_compile.erl')
-rw-r--r-- | src/rebar_prv_compile.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl index 1fb29bd..f70ca28 100644 --- a/src/rebar_prv_compile.erl +++ b/src/rebar_prv_compile.erl @@ -120,8 +120,9 @@ copy_app_dirs(State, OldAppDir, AppDir) -> filelib:ensure_dir(filename:join(AppDir, "dummy")), %% link to src_dirs to be adjacent to ebin is needed for R15 use of cover/xref ErlOpts = rebar_utils:erl_opts(State), - SrcDirs = proplists:get_value(src_dirs, ErlOpts, ["src"]), - [symlink_or_copy(OldAppDir, AppDir, Dir) || Dir <- ["priv", "include", "test"] ++ SrcDirs]; + SrcDirs = proplists:get_value(src_dirs, ErlOpts, ["src"]) ++ + proplists:get_value(extra_src_dirs, ErlOpts, []), + [symlink_or_copy(OldAppDir, AppDir, Dir) || Dir <- ["priv", "include"] ++ SrcDirs]; false -> ok end. |