Author: jflesch
Date: 2007-04-23 22:15:05 +0000 (Mon, 23 Apr 2007)
New Revision: 12906

Modified:
   trunk/apps/Thaw/src/thaw/fcp/FCPTestDDA.java
Log:
Fix TestDDA

Modified: trunk/apps/Thaw/src/thaw/fcp/FCPTestDDA.java
===================================================================
--- trunk/apps/Thaw/src/thaw/fcp/FCPTestDDA.java        2007-04-23 21:47:07 UTC 
(rev 12905)
+++ trunk/apps/Thaw/src/thaw/fcp/FCPTestDDA.java        2007-04-23 22:15:05 UTC 
(rev 12906)
@@ -32,7 +32,14 @@
        public FCPTestDDA(String directory,
                          boolean wantTheNodeToRead,
                          boolean wantTheNodeToWrite) {
-               this.dir       = directory;
+
+               try {
+                       this.dir = new File(directory).getCanonicalPath();
+               } catch(java.io.IOException e) {
+                       Logger.error(this, "IOException while doing a 
getCanonicalPath() on the directory : "+e.toString());
+                       this.dir = new File(directory).getAbsolutePath();
+               }
+
                this.wantRead  = wantTheNodeToRead;
                this.wantWrite = wantTheNodeToWrite;
        }
@@ -86,9 +93,9 @@
                try {
                        FileInputStream stream = new FileInputStream(filename);
                        DataInputStream dis = new DataInputStream(stream);
-                       
+
                        data = dis.readUTF();
-                       
+
                        dis.close();
                        stream.close();



Reply via email to