diff options
author | Eric B Merritt <ericbmerritt@gmail.com> | 2012-07-03 08:07:27 -0500 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-07-03 15:18:09 +0200 |
commit | ec3927f9b06dfe5d958807db7246735d0f399b78 (patch) | |
tree | 6d81bd6836e4cca33bd172bb699bd0b0cbcd54e4 | |
parent | 6236ae1ce6f66470db63bd56de7f541ab99206fe (diff) |
Fix eunit testing of apps that have no erl files
'Erlang' projects that do not contain any erlang files (Joxa, LFE,
Elixir, etc) break the eunit task. It attempts to copy an empty list
of source files to the .eunit directory. This change makes copying an
empty list a simple no-op.
-rw-r--r-- | src/rebar_file_utils.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl index 6eb2ab1..51ba96e 100644 --- a/src/rebar_file_utils.erl +++ b/src/rebar_file_utils.erl @@ -57,6 +57,8 @@ rm_rf(Target) -> end. -spec cp_r(Sources::list(string()), Dest::file:filename()) -> ok. +cp_r([], _Dest) -> + ok; cp_r(Sources, Dest) -> case os:type() of {unix, _} -> |