Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368030

Make package bundlers stateless

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • tools
    • b18
    • generic
    • generic

      The msi bundler is stateful and holds data specific to the current packaging parameters [1]. This makes the exe bundler stateful too, because it references an instance of the msi bundler [2].

      Rework both of these bundles to make them stateless like other bundlers.

      Additionally, move code validating bundling tools (dpkg, rpmbuild, wix, etc.) into separate entities with a lifecycle independent from the lifecycle of the code doing package bundling.

      [1] https://github.com/openjdk/jdk/blob/6e4e966d9b71ec04618e19784b5a661f34595ef6/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinMsiBundler.java#L556
      [2] https://github.com/openjdk/jdk/blob/6e4e966d9b71ec04618e19784b5a661f34595ef6/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinExeBundler.java#L138

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: