JAL-761
authorjprocter <Jim Procter>
Fri, 4 Feb 2011 15:30:50 +0000 (15:30 +0000)
committerjprocter <Jim Procter>
Fri, 4 Feb 2011 15:30:50 +0000 (15:30 +0000)
src/jalview/bin/Cache.java

index 48837ff..f80d729 100755 (executable)
@@ -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");