Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-20788

The bootable JAR temporary files are not cleaned up properly on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EAP-XP-3.0.0.CR1
    • EAP-XP-2.0.0.GA
    • None
    • None

      On Windows when an executable JAR is cancelled, CTRL+C, the temporary files seem to not be deleted. Heaps of warning messages are logged indicating this. This is likely due to JBoss Modules holding onto files which Windows sees as a lock and does not allow the file to be deleted.

      One possible option might be to launch a separate process which deletes the files. We could introduce a temporary PID type of file that gets deleted at the end of the main process ending the new process could look for and once removed the process could attempt to delete the files.

      This replaces the issue https://github.com/wildfly-extras/wildfly-jar-maven-plugin/issues/174.

              jperkins-rhn James Perkins
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: