From: amwaterhouse Date: Thu, 2 Nov 2006 15:10:37 +0000 (+0000) Subject: Use system path separator char X-Git-Tag: Release_2_2~192 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bb9b4018d314ed5858504faf2bc848178bc9f6a9;p=jalview.git Use system path separator char --- diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index 77178a1..0e9c3ca 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -95,7 +95,7 @@ public class Cache propertiesFile = propsFile; if (propsFile == null) { - propertiesFile = System.getProperty("user.home") + "/.jalview_properties"; + propertiesFile = System.getProperty("user.home") +File.separatorChar+".jalview_properties"; } try @@ -288,12 +288,9 @@ public class Cache { try { - File oldFile = new File(propertiesFile); - oldFile.renameTo(new File(propertiesFile+"#")); FileOutputStream out = new FileOutputStream(propertiesFile); applicationProperties.store(out, "---JalviewX Properties File---"); out.close(); - oldFile.delete(); } catch (Exception ex) { System.out.println("Error saving properties: "+ex); }