diff options
author | wisberg <wisberg> | 2003-05-14 05:05:31 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-05-14 05:05:31 +0000 |
commit | 446bc2deb6df4a2e058b31a4a4f65aa796d90633 (patch) | |
tree | 7ae93872a041148ee877fd46248ed6a8dae6c721 /testing | |
parent | 3527ce95d12822f9b6374a808e668476f22e713f (diff) | |
download | aspectj-446bc2deb6df4a2e058b31a4a4f65aa796d90633.tar.gz aspectj-446bc2deb6df4a2e058b31a4a4f65aa796d90633.zip |
- absolutizing tempdir path if necessary
(bug in path calculations otherwise when
using relative path to work around failure
of File.getTempFile())
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/org/aspectj/testing/harness/bridge/Sandbox.java | 9 |
1 files changed, 7 insertions, 2 deletions
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"); |