"FileUtils.deleteDirectory" is used and throws this IOException. I don't
think commons-io solves this JVM issue.
Maybe a System.gc() can solve this ?
According to
http://www.gossamer-threads.com/lists/lucene/java-user/39116, some file
handler opened by Lucene may stay opened and must wait for GC to be closed.
Brett Porter a écrit :
Might need to use FileUtils.delete instead of just delete. Please file
an issue.
On Windows, files sometimes aren't deleted until GC. It's a long
standing JVM issue.
On 28/08/2006, at 7:00 PM, Nicolas De Loof wrote:
When building archiva, I sometime get Failures on some Lucene tests :
java.io.IOException: Directory
D:\opensources\archiva\archiva-indexer\target\test-index unable to be
deleted.
Maybe those tests should use a separate directory for each test to
avoid file locks ?
This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not
the intended recipient, you are not authorized to read, print,
retain, copy, disseminate, distribute, or use this message or any
part thereof. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.