From: jprocter Date: Fri, 4 Feb 2011 15:30:50 +0000 (+0000) Subject: JAL-761 X-Git-Tag: Release_2_7~266 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=179f28db07e2e45e98ad141e42299547fe0e77c0;p=jalview.git JAL-761 --- 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");