JAL-1479 applet build debug
[jalview.git] / src / jalview / bin / Cache.java
index 67d359a..b492067 100755 (executable)
@@ -217,6 +217,10 @@ public class Cache
 
   public static final String DAS_ACTIVE_SOURCE = "DAS_ACTIVE_SOURCE";
 
+  public static final String DEFAULT_SIFTS_DOWNLOAD_DIR = System
+          .getProperty("user.home")
+          + File.separatorChar
+          + ".sifts_downloads" + File.separatorChar;
   /**
    * Initialises the Jalview Application Log
    */
@@ -399,6 +403,9 @@ public class Cache
     SiftsSettings
             .setMapWithSifts(Cache.getDefault("MAP_WITH_SIFTS", false));
 
+    SiftsSettings.setSiftDownloadDirectory(jalview.bin.Cache.getDefault(
+            "sifts_download_dir", DEFAULT_SIFTS_DOWNLOAD_DIR));
+
     System.out
             .println("Jalview Version: " + codeVersion + codeInstallation);