summaryrefslogtreecommitdiff
path: root/src/rebar_prv_compile.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-01-05 19:26:51 -0500
committerFred Hebert <mononcqc@ferd.ca>2016-01-05 19:26:51 -0500
commit956e43a862c10c784059a5ac5c1368c116c064dc (patch)
treef1244d3feb28e14c95cafb1610e308a7a2167e40 /src/rebar_prv_compile.erl
parentd5a601c89fd58ada4de46ec4a48940b9cd5760d6 (diff)
parenta4711d00ac294328494de620b2e66067ff80785c (diff)
Merge pull request #966 from talentdeficit/ct_root_suites
allow ct suites to be specified at root of project (or root of app)
Diffstat (limited to 'src/rebar_prv_compile.erl')
-rw-r--r--src/rebar_prv_compile.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl
index 2996aee..d57b82b 100644
--- a/src/rebar_prv_compile.erl
+++ b/src/rebar_prv_compile.erl
@@ -217,6 +217,10 @@ copy(OldAppDir, AppDir, Dir) ->
%% TODO: use ec_file:copy/2 to do this, it preserves timestamps and
%% may prevent recompilation of files in extra dirs
+copy(Source, Source) ->
+ %% allow users to specify a directory in _build as a directory
+ %% containing additional source/tests
+ ok;
copy(Source, Target) ->
%% important to do this so no files are copied onto themselves
%% which truncates them to zero length on some platforms