git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e5bf28
)
Use system path separator char
author
amwaterhouse
<Andrew Waterhouse>
Thu, 2 Nov 2006 15:10:37 +0000
(15:10 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 2 Nov 2006 15:10:37 +0000
(15:10 +0000)
src/jalview/bin/Cache.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/Cache.java
b/src/jalview/bin/Cache.java
index
77178a1
..
0e9c3ca
100755
(executable)
--- 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 = propsFile;
if (propsFile == null)
{
- propertiesFile = System.getProperty("user.home") + "/.jalview_properties";
+ propertiesFile = System.getProperty("user.home") +File.separatorChar+".jalview_properties";
}
try
}
try
@@
-288,12
+288,9
@@
public class Cache
{
try
{
{
try
{
- File oldFile = new File(propertiesFile);
- oldFile.renameTo(new File(propertiesFile+"#"));
FileOutputStream out = new FileOutputStream(propertiesFile);
applicationProperties.store(out, "---JalviewX Properties File---");
out.close();
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); }
}
catch (Exception ex)
{ System.out.println("Error saving properties: "+ex); }