[ http://issues.apache.org/jira/browse/IO-17?page=comments#action_12420789 ]
Joerg Schaible commented on IO-17: ---------------------------------- Same from me: Using System.gc() in a library method is a no-no! If you cannot delete the file, it simply means, someone did not close it. So that code should be fixed! > [io] delete in FileUtils sometimes fails on Windows > --------------------------------------------------- > > Key: IO-17 > URL: http://issues.apache.org/jira/browse/IO-17 > Project: Commons IO > Type: Bug > Versions: 1.0 > Environment: Operating System: Windows XP > Platform: PC > Reporter: Wim Deblauwe > Fix For: 1.3 > > The delete function in the FileUtils class will sometimes not delete a file or > directory on windows. This is a known bug in the VM. Ant solves this by > calling > the GC explecitly and then wait some time. See > http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/Delete.java?view=markup > on how they do it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
