< prev index next >

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ImagePluginStack.java

Print this page

        

*** 165,196 **** private final List<PostProcessorPlugin> postProcessingPlugins = new ArrayList<>(); private final List<ResourcePrevisitor> resourcePrevisitors = new ArrayList<>(); private final ImageBuilder imageBuilder; private final Properties release; - private final String bom; ! public ImagePluginStack(String bom) { this(null, Collections.emptyList(), null, ! Collections.emptyList(), null, bom); } public ImagePluginStack(ImageBuilder imageBuilder, List<TransformerPlugin> contentPlugins, Plugin lastSorter, ! List<PostProcessorPlugin> postprocessingPlugins, ! String bom) { this(imageBuilder, contentPlugins, lastSorter, ! postprocessingPlugins, null, bom); } public ImagePluginStack(ImageBuilder imageBuilder, List<TransformerPlugin> contentPlugins, Plugin lastSorter, List<PostProcessorPlugin> postprocessingPlugins, ! PluginContext ctxt, ! String bom) { Objects.requireNonNull(contentPlugins); this.lastSorter = lastSorter; for (TransformerPlugin p : contentPlugins) { Objects.requireNonNull(p); if (p instanceof ResourcePrevisitor) { --- 165,193 ---- private final List<PostProcessorPlugin> postProcessingPlugins = new ArrayList<>(); private final List<ResourcePrevisitor> resourcePrevisitors = new ArrayList<>(); private final ImageBuilder imageBuilder; private final Properties release; ! public ImagePluginStack() { this(null, Collections.emptyList(), null, ! Collections.emptyList(), null); } public ImagePluginStack(ImageBuilder imageBuilder, List<TransformerPlugin> contentPlugins, Plugin lastSorter, ! List<PostProcessorPlugin> postprocessingPlugins) { this(imageBuilder, contentPlugins, lastSorter, ! postprocessingPlugins, null); } public ImagePluginStack(ImageBuilder imageBuilder, List<TransformerPlugin> contentPlugins, Plugin lastSorter, List<PostProcessorPlugin> postprocessingPlugins, ! PluginContext ctxt) { Objects.requireNonNull(contentPlugins); this.lastSorter = lastSorter; for (TransformerPlugin p : contentPlugins) { Objects.requireNonNull(p); if (p instanceof ResourcePrevisitor) {
*** 202,212 **** Objects.requireNonNull(p); this.postProcessingPlugins.add(p); } this.imageBuilder = imageBuilder; this.release = ctxt != null? ctxt.getReleaseProperties() : new Properties(); - this.bom = bom; } public void operate(ImageProvider provider) throws Exception { ExecutableImage img = provider.retrieve(this); List<String> arguments = new ArrayList<>(); --- 199,208 ----
*** 477,487 **** desc.osVersion().ifPresent(s -> release.put("OS_VERSION", s)); desc.osArch().ifPresent(s -> release.put("OS_ARCH", s)); } catch (Exception ignored) { } ! imageBuilder.storeFiles(new LastPool(transformed), bom, release); } public ExecutableImage getExecutableImage() throws IOException { return imageBuilder.getExecutableImage(); } --- 473,483 ---- desc.osVersion().ifPresent(s -> release.put("OS_VERSION", s)); desc.osArch().ifPresent(s -> release.put("OS_ARCH", s)); } catch (Exception ignored) { } ! imageBuilder.storeFiles(new LastPool(transformed), release); } public ExecutableImage getExecutableImage() throws IOException { return imageBuilder.getExecutableImage(); }
< prev index next >