cleanup is not called when jpackage command fails.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • internal
    • Affects Version/s: internal
    • Component/s: tools

      The previous implementation of Arguments.generateBundle() called (possibly multiple Bundlers) in a loop, and called bundler.cleanup() after each one.
      This was not in a finally block, so the temp directory was never cleaned up when an exception was thrown.

      as a result you may fine multiple temp directories left behind. (/tmp/jdk.jpackageXXXXX on windows)

      With the new implementation to execute only one bundler, the code:
                  if (!userProvidedBuildRoot) {
                      bundler.cleanup(localParams);
                  }
      can be moved into the existing finally block.

            Assignee:
            Andy Herrick (Inactive)
            Reporter:
            Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: