CompEvol / beast2

Bayesian Evolutionary Analysis by Sampling Trees
www.beast2.org
GNU Lesser General Public License v2.1
236 stars 83 forks source link

Remove jars when updating packages #1155

Open rbouckaert opened 2 months ago

rbouckaert commented 2 months ago

When installing a new package, currently any jar files in the lib directory remain there if not overwritten, and get loaded when BEAST, BEAUti etc start. This can cause problems when file names change between versions (e.g. MyPackage.addon.jar becomes MyPackage.package.jar) and can result in hard to diagnose problems. Therefore, when updating a package to a new version, the lib directory should be removed before unzipping the new package file.

rbouckaert commented 2 months ago

This is probably only an issue for installation by hand, or using ant for some packages, since the whole package directory gets deleted (including the lib directory) when updating a package.