From: Bryan T. <tho...@us...> - 2007-02-22 16:59:39
|
Update of /cvsroot/cweb/bigdata/src/java/com/bigdata/objndx In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16247/src/java/com/bigdata/objndx Modified Files: IndexSegmentFileStore.java Log Message: Lots of little changes to get the test suites to use temporary files and to remove them when tests complete. At present, this only helps if the test succeeds. You need to do a try {} finally {} to get the tests to remove their files on failure. Index: IndexSegmentFileStore.java =================================================================== RCS file: /cvsroot/cweb/bigdata/src/java/com/bigdata/objndx/IndexSegmentFileStore.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** IndexSegmentFileStore.java 21 Feb 2007 20:17:21 -0000 1.7 --- IndexSegmentFileStore.java 22 Feb 2007 16:59:35 -0000 1.8 *************** *** 123,126 **** --- 123,132 ---- } + public File getFile() { + + return file; + + } + public void close() { *************** *** 141,144 **** --- 147,162 ---- } + + public void closeAndDelete() { + + close(); + + if(!file.delete()) { + + System.err.println("WARN: Could not delete: "+file.getAbsolutePath()); + + } + + } public long write(ByteBuffer data) { |