Clément, On 1/31/17 1:17 PM, Clément Guillaume wrote: > I have a unit test, using log4j 2.8 to log to a file using a FileAppender, > that deletes the log file at the end of the test. This test works well on > linux, but fails on Windows because the java process still has a file > handle to the log file, and so the file cannot be deleted. > Any idea how to have the same behavior on the two platforms?
What about shutting-down log4j (or the appender) before you try to delete the file? -chris
signature.asc
Description: OpenPGP digital signature
