]> source.dussan.org Git - aspectj.git/commitdiff
- absolutizing tempdir path if necessary
authorwisberg <wisberg>
Wed, 14 May 2003 05:05:31 +0000 (05:05 +0000)
committerwisberg <wisberg>
Wed, 14 May 2003 05:05:31 +0000 (05:05 +0000)
  (bug in path calculations otherwise when
   using relative path to work around failure
   of File.getTempFile())

testing/src/org/aspectj/testing/harness/bridge/Sandbox.java

index 6f03199c4c20558b8e5208f25dfd5a6ebd8867d5..35350ef85136f3e628b5c8e3f08de79563dd506d 100644 (file)
@@ -133,8 +133,13 @@ public class Sandbox {
         this.validator = validator;
         Sandbox.iaxRead(testBaseDir, "testBaseDir");
         this.testBaseDir = testBaseDir;
-        
-        sandboxDir = FileUtil.getTempDir("Sandbox");
+        {
+           File baseDir = FileUtil.getTempDir("Sandbox");
+           if (!baseDir.isAbsolute()) {
+               baseDir = baseDir.getAbsoluteFile();
+           }
+           sandboxDir = baseDir;
+        }
         Sandbox.iaxWrite(sandboxDir, "sandboxDir"); // XXX not really iax
 
         workingDir = FileUtil.makeNewChildDir(sandboxDir, "workingDir");