Don't use FileUtils.getBriarDirectory() in tests.

This commit is contained in:
akwizgran
2011-07-14 20:42:41 +01:00
parent 065b6e496f
commit 62d69b6fb5
7 changed files with 35 additions and 26 deletions

View File

@@ -20,10 +20,8 @@ public class FileUtils {
// Running from a jar - return the jar's grandparent
f = f.getParentFile().getParentFile();
} else {
// Running from Eclipse or ant
// Running from Eclipse
f = new File(f.getParentFile(), "Briar");
if(!f.exists())
f = new File(f.getParentFile().getParentFile(), "Briar"); // Ant
}
assert f.exists();
assert f.isDirectory();