[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Fri Jun 8 20:30:22 UTC 2007
gordonp
Fri Jun 8 16:30:21 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util
In directory dev.open-bio.org:/tmp/cvs-serv29870/src/main/ca/ucalgary/seahawk/util
Modified Files:
SeahawkOptions.java
Log Message:
Code revamp to deal with new disk cache
moby-live/Java/src/main/ca/ucalgary/seahawk/util SeahawkOptions.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/SeahawkOptions.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/SeahawkOptions.java 2007/06/08 14:04:27 1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/SeahawkOptions.java 2007/06/08 20:30:21 1.2
@@ -265,7 +265,7 @@
* @return the file system location where preferences are stored (whether the file currently exists or not)
*/
public static File getDefaultsFile(){
- return new File(System.getProperty("java.io.tmpdir"), System.getProperty("user.name")+"."+PROPS_FILE_NAME);
+ return new File(System.getProperty("user.dir"), PROPS_FILE_NAME);
}
/**
@@ -320,12 +320,12 @@
throw new IOException("The temporary data path given (" + dir.toString() +
") is not writeable as required");
}
- // Uncomment if we ever need to do a directory listing
- //if(!dir.canRead()){
- // throw new IOException("The temporary data path given (" + dir.toString() +
- // ") is not readable as required");
- //}
+ if(!dir.canRead()){
+ throw new IOException("The temporary data path given (" + dir.toString() +
+ ") is not readable as required");
+ }
tmpDir = dir;
+ RegistryCache.setTempDir(dir);
}
/**
More information about the MOBY-guts
mailing list