[jboss-cvs] JBossAS SVN: r84401 - projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 18 12:42:05 EST 2009
Author: adrian at jboss.org
Date: 2009-02-18 12:42:05 -0500 (Wed, 18 Feb 2009)
New Revision: 84401
Modified:
projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/FileCleanupUnitTest.java
Log:
Fix the non-portable path manipulation
Modified: projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/FileCleanupUnitTest.java
===================================================================
--- projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/FileCleanupUnitTest.java 2009-02-18 17:27:25 UTC (rev 84400)
+++ projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/FileCleanupUnitTest.java 2009-02-18 17:42:05 UTC (rev 84401)
@@ -80,17 +80,18 @@
field.set(null, null);
String tempDirKey = System.getProperty("vfs.temp.dir", "jboss.server.temp.dir");
- String tempDirString = System.getProperty(tempDirKey, System.getProperty("java.io.tmpdir")) + GUID.asString();
+ String tempDirString = System.getProperty(tempDirKey, System.getProperty("java.io.tmpdir"));
tempDir = new File(tempDirString);
+ tempDir = new File(tempDir, GUID.asString());
tempDir.deleteOnExit();
if (tempDir.exists())
{
deleteTempDir();
}
- assertTrue(tempDir.mkdir());
+ assertTrue("mkdir " + tempDir, tempDir.mkdir());
- System.setProperty("jboss.server.temp.dir", tempDirString);
+ System.setProperty("jboss.server.temp.dir", tempDir.getCanonicalPath());
VFSCache cache = new LRUVFSCache(2, 5);
cache.start();
More information about the jboss-cvs-commits
mailing list