X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FCache.java;h=1214371cd65eb85d0521f021c197da3e1c1b4cd9;hb=c5a282b16946ddd9c6a82d828d0848802f610eac;hp=fff9dafe80e054a9fd9f8ca185ecfabb219c8524;hpb=04e9ac268a61d1cef5c65827942a2ec4b92f3814;p=jalview.git diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index fff9daf..1214371 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -284,8 +284,10 @@ public class Cache fis = new FileInputStream(propertiesFile); } applicationProperties.load(fis); - applicationProperties.remove("LATEST_VERSION"); - applicationProperties.remove("VERSION"); + + // remove any old build properties + + deleteBuildProperties(); fis.close(); } catch (Exception ex) { @@ -437,6 +439,15 @@ public class Cache false); } + private static void deleteBuildProperties() + { + applicationProperties.remove("LATEST_VERSION"); + applicationProperties.remove("VERSION"); + applicationProperties.remove("AUTHORS"); + applicationProperties.remove("AUTHORFNAMES"); + applicationProperties.remove("YEAR"); + } + /** * Gets Jalview application property of given key. Returns null if key not * found