summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-04-27 09:35:46 -0400
committerFred Hebert <mononcqc@ferd.ca>2018-04-27 09:35:46 -0400
commit19d20c548e6866418113479dcbe60858ba8ecf11 (patch)
tree7fd2e052524ef247f95076de06ab7dad7dba6c9e /src
parent81bd21b23a1f45379f006d9d441c83151e4a1765 (diff)
parent775261dd0b24d74e48f5873ef1ffff56c0c4829a (diff)
Merge branch 'danikp-feature_long_src_paths' of github.com:ferd/rebar3 into danikp-feature_long_src_paths
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_compile.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl
index 72320fb..1748118 100644
--- a/src/rebar_prv_compile.erl
+++ b/src/rebar_prv_compile.erl
@@ -236,7 +236,10 @@ copy_app_dirs(AppInfo, OldAppDir, AppDir) ->
symlink_or_copy(OldAppDir, AppDir, Dir) ->
Source = filename:join([OldAppDir, Dir]),
Target = filename:join([AppDir, Dir]),
- rebar_file_utils:symlink_or_copy(Source, Target).
+ case ec_file:is_dir(Source) of
+ true -> rebar_file_utils:symlink_or_copy(Source, Target);
+ false -> ok
+ end.
copy(OldAppDir, AppDir, Dir) ->
Source = filename:join([OldAppDir, Dir]),