Skip to content

Commit

Permalink
Merge branch 'danikp-feature_long_src_paths' of github.com:ferd/rebar…
Browse files Browse the repository at this point in the history
…3 into danikp-feature_long_src_paths
  • Loading branch information
ferd committed Apr 27, 2018
2 parents 81bd21b + 775261d commit 19d20c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/rebar_prv_compile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
Expand Down
3 changes: 0 additions & 3 deletions test/rebar_dir_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,10 @@ alt_src_dir_nested(Config) ->
RebarConfig = [{src_dirs, ["src", "alt/nested"]}],
AppsDir = ?config(apps, Config),
Name1 = ?config(app_one, Config),
Name2 = ?config(app_two, Config),
ModDir = filename:join([AppsDir, "apps", Name1, "alt", "nested"]),
ModDir2 = filename:join([AppsDir, "apps", Name2, "alt", "nested"]),
Mod = "-module(altmod). -export([main/0]). main() -> ok.",

ec_file:mkdir_path(ModDir),
ec_file:mkdir_path(ModDir2),
ok = file:write_file(filename:join([ModDir, "altmod.erl"]), Mod),

Ebin = filename:join([AppsDir, "_build", "default", "lib", Name1, "ebin", "altmod.beam"]),
Expand Down

0 comments on commit 19d20c5

Please sign in to comment.