[jboss-dev-forums] [Design of JBoss Wiki] - Deleting files in Windows

timliu9 do-not-reply at jboss.com
Sun Aug 5 05:45:48 EDT 2007


I've been testing the JBoss Wiki, and i just first wanted to say good job on porting the JSPWiki. I looked into doing it for a while for a project I'm working on until i found the JBoss Wiki.

The mechanism for deleting files using the File.renameto (Found in FileAttachmentDataSource and FileMediaDataSource) in Windows has been giving me a lot of trouble. I found this bug:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6213298

It basically says that with windows sometimes you need to do a garbage collection (System.gc()) before you can successfully rename a file.  

We will eventually be deploying on a Linux machine, but I just want to let everyone know that when testing on windows you may run into the problem and it can be fixed by using the System.gc() if the renameto fails.

Maybe you've already addressed this problem or my machines are messed up, but i didn't see anything else on the forum. sorry if i'm just repeating someone else.

Tim

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070953#4070953

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070953



More information about the jboss-dev-forums mailing list