From 179f28db07e2e45e98ad141e42299547fe0e77c0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 4 Feb 2011 15:30:50 +0000 Subject: [PATCH] JAL-761 --- src/jalview/bin/Cache.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index 48837ff..f80d729 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -229,7 +229,14 @@ public class Cache try { - FileInputStream fis = new FileInputStream(propertiesFile); + InputStream fis; + try { + fis = new java.net.URL(propertiesFile).openStream(); + System.out.println("Loading jalview properties from : "+propertiesFile); + } catch (Exception ex) {fis=null;} + if (fis==null) { + fis = new FileInputStream(propertiesFile); + } applicationProperties.load(fis); applicationProperties.remove("LATEST_VERSION"); applicationProperties.remove("VERSION"); -- 1.7.10.2