equal
deleted
inserted
replaced
717 return platformBundlers; |
717 return platformBundlers; |
718 } |
718 } |
719 |
719 |
720 private boolean generateBundle(Map<String,? super Object> params) |
720 private boolean generateBundle(Map<String,? super Object> params) |
721 throws PackagerException { |
721 throws PackagerException { |
|
722 |
722 boolean bundleCreated = false; |
723 boolean bundleCreated = false; |
723 File imageDir = null; |
724 |
|
725 // the build-root needs to be fetched from the params early, |
|
726 // to prevent each copy of the params (such as may be used for |
|
727 // secondary launchers) from generating a separate build-root when |
|
728 // the default is used (the default is a new temp directory) |
|
729 // The bundler.cleanup() below would not otherwise be able to |
|
730 // clean these extra (and unneeded) temp directories. |
|
731 StandardBundlerParam.BUILD_ROOT.fetchFrom(params); |
724 |
732 |
725 for (jdk.jpackage.internal.Bundler bundler : getPlatformBundlers()) { |
733 for (jdk.jpackage.internal.Bundler bundler : getPlatformBundlers()) { |
726 Map<String, ? super Object> localParams = new HashMap<>(params); |
734 Map<String, ? super Object> localParams = new HashMap<>(params); |
727 try { |
735 try { |
728 if (bundler.validate(localParams)) { |
736 if (bundler.validate(localParams)) { |