diff options
author | joewilliams <joe@joetify.com> | 2011-10-05 20:17:43 -0700 |
---|---|---|
committer | joewilliams <joe@joetify.com> | 2011-10-05 20:23:07 -0700 |
commit | b7bcf5528bb30cc8f2a9b95dc967e2a555243db1 (patch) | |
tree | c65433509f99bd86c0e0bd5cf77ad203dde46386 /src | |
parent | 30d1cdb31bbcc573cf3f31e67fdf0c1140b731fc (diff) |
Handle vm.args properly while building upgrades
This patch corrects the vm.args behavior while building upgrade tarballs
by copying the file from the release into the upgrade. Additionally it
patches the dummy runner script in the upgrade test project to work
properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_upgrade.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl index 0cecaab..0b39035 100644 --- a/src/rebar_upgrade.erl +++ b/src/rebar_upgrade.erl @@ -151,7 +151,10 @@ boot_files(TargetDir, Ver, Name) -> filename:join([".", ?TMP, "releases", Ver, Name ++ ".boot"])), {ok, _} = file:copy( filename:join([TargetDir, "releases", Ver, "start_clean.boot"]), - filename:join([".", ?TMP, "releases", Ver, "start_clean.boot"])). + filename:join([".", ?TMP, "releases", Ver, "start_clean.boot"])), + {ok, _} = file:copy( + filename:join([TargetDir, "releases", Ver, "vm.args"]), + filename:join([".", ?TMP, "releases", Ver, "vm.args"])). make_tar(NameVer) -> Filename = NameVer ++ ".tar.gz", |