It's a workaround for the brain dead file locking in windows (a copy of the ear is created every time it is deployed). I don't know why it is not cleaning up temp files, if they're created as such, windows should be able to handle them on its own.
I've never heard of Windows automatically deleting temp files. I thought this was left up to the program. How is Windows supposed to know when a file/folder is no longer needed?
Is there a way to not have the war deployed every time? If the war hasn't changed, there is no reason to redeploy (except of course that temp files are used, and there is no guarantee that they are still there).
> I've never heard of Windows automatically deleting
> temp files. I thought this was left up to the
> program. How is Windows supposed to know when a
> file/folder is no longer needed?
When the process that created the temp file exits? I don't know, I don't design Windows.
> Is there a way to not have the war deployed every
What you mean? If the server is restarted and your ear is in deploy directory, it is deployed.
hmm, maybe we're missing the deleteOnExit() call somewhere, dunno, have to look