"scott.stark(a)jboss.org" wrote : Permissions on the file system, a directory that
is not empty are the main reasons.
Even for a temp file?
| public void testFileURLs()
| throws Exception
| {
| File tmp = File.createTempFile("testFileURLs", null);
| URL tmpURL = tmp.toURL();
| URLConnection conn = tmpURL.openConnection();
| long lastModified = conn.getLastModified();
| System.out.println("lastModified, "+lastModified);
| assertNotSame("lastModified", 0, lastModified);
| assertTrue(tmp.getAbsolutePath()+" deleted", tmp.delete());
| conn = tmpURL.openConnection();
| lastModified = conn.getLastModified();
| System.out.println("lastModified after delete, "+lastModified);
| assertEquals("lastModified", 0, lastModified);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101536#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...