bndtools/bnd — pull request #245 by bramk (2012-08-26 20:09:27+00:00)
Title: Ensure close on Jar before rename (fails on windows)

Tracked this from issue with adding file to repositories in Bndtools to via Bnd FileRepo and LocalIndexedRepo. aQute.bnd.osgi.Jar keeps open filerefs that will cause rename/delete to fail on windows.

Eg.
java.io.IOException: Could not rename C:\bramk\AtoomBlocks\bnd\biz.aQute.bndlib.tests\src\test\repo\put6196645587131076418.jar to C:\bramk\AtoomBlocks\bnd\biz.aQute.bndlib.tests\src\test\repo\test\test-0.0.0.jar
at aQute.lib.io.IO.rename(IO.java:369)
at aQute.lib.deployer.FileRepo.putArtifact(FileRepo.java:330)
at aQute.lib.deployer.FileRepo.put(FileRepo.java:393)
at test.deployer.FileRepoTest.testBundleNotModifiedOnPut(FileRepoTest.java:97)