Hi all, Using ant 1.6.0. <jar> works fine without "update" attr, but setting to true results in: "unable to rename old file... to temporary file." Windows environment. build.xml fragment: <jar basedir="." jarfile="${archive}" includes="**/${filename}.class" update="true" /> All insights greatly appreciated ! [ January 12, 2004: Message edited by: Joe Fisher ]
Sorry Joe I am not up to speed with the NAT 1.6 changes..however could you post a little more lines of your build say about 5 lines before and after that line so we can see waht is going on more clearly?
</project> Adding attribute update="true" to jar task causes the problem. I have found evidence of this problem on the net, but not a lot, and no firm resolution.
Hi, I got this too and have found it to be a simple issue of one of my other programs locking the .jar file. To test this what to do is simply quit out of the ant script (though it has probably already crashed out!) then try renaming the .jar file manually in DOS. "rename myJar.jar newTempName.jar" and it will give you an operating system error message. So just keep retrying your ant script as you close down other programs you have open until it works.
I find that sysinternals' ProcessExplorer is excellent for finding this common culprit. http://www.systeminternals.com/. Just use the [find->find handle or dll] feature to see which processes have open handles to a certain file. Great stuff!
Slime does not pay. Always keep your tiny ad dry.
Gift giving made easy with the permaculture playing cards