warbler icon indicating copy to clipboard operation
warbler copied to clipboard

Warbler does not delete temporary files on Windows

Open mamantoha opened this issue 11 years ago • 5 comments

We are using warbler to run an application, which is run on Windows and Linux. After running jar, temporary files are not being deleted. We were able to reproduce the issue on Windows machine. Biggest problem is that when running next time it creates another set of tmp files (does not override previous at least)

Eventually C:\Users\user\AppData\Local\Temp is clogged with jruby<timestamp>extract directories. Hopefully it's something easy to fix.

  • warbler-1.4.0.dev
  • jruby 1.7.4

Thank you in advance.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446608-warbler-does-not-delete-temporary-files-on-windows?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).

mamantoha avatar Oct 03 '13 11:10 mamantoha

This isn't confined to windows -- we're seeing the same thing on Linux, with warbler 1.4.3 and jruby 1.7.10

ajf avatar Mar 01 '15 03:03 ajf

It would be nice if there was a mode to reuse the same temp exploded war directory. I can think of two benefits of this approach:

  1. You avoid this issue, i.e. too much disk usage.
  2. You could avoid the processor utilization to run the decompression on every invocation.

ryanrolland avatar Dec 16 '16 20:12 ryanrolland

👍 I have the same issue with 2.0.5

jruby-core, jruby-stdlib files are not recycled

PS: can't reproduce on macos/linux. But my target platform is windows unfortunately :'-(

sergio-fry avatar Aug 27 '19 07:08 sergio-fry

same issue here. warble created jar on windows leaving lots of temporary files

imweijh avatar Aug 02 '23 01:08 imweijh

Yes that's currently the case as I also mentioned here: https://notepad.onghu.com/2021/jruby-win-day2-creating-jar-files/

You need a housekeeping job that cleans them up. You can recycle the path as linked further up in this issue.

mohits avatar Aug 15 '23 14:08 mohits