From: wisberg Date: Wed, 14 May 2003 05:05:31 +0000 (+0000) Subject: - absolutizing tempdir path if necessary X-Git-Tag: V1_1_0~123 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=446bc2deb6df4a2e058b31a4a4f65aa796d90633;p=aspectj.git - absolutizing tempdir path if necessary (bug in path calculations otherwise when using relative path to work around failure of File.getTempFile()) --- diff --git a/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java b/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java index 6f03199c4..35350ef85 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java +++ b/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java @@ -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");