< prev index next >

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

Print this page

        

*** 66,89 **** } private ImagePluginConfiguration() { } - public static ImagePluginStack parseConfiguration(Jlink.PluginsConfiguration plugins) - throws Exception { - return parseConfiguration(plugins, null); - } - /* * Create a stack of plugins from a a configuration. - * */ ! public static ImagePluginStack parseConfiguration(Jlink.PluginsConfiguration pluginsConfiguration, ! String bom) throws Exception { if (pluginsConfiguration == null) { ! return new ImagePluginStack(bom); } Map<Plugin.CATEGORY, List<Plugin>> plugins = new LinkedHashMap<>(); for (Plugin.CATEGORY cat : CATEGORIES_ORDER) { plugins.put(cat, new ArrayList<>()); } --- 66,82 ---- } private ImagePluginConfiguration() { } /* * Create a stack of plugins from a a configuration. */ ! public static ImagePluginStack parseConfiguration(Jlink.PluginsConfiguration pluginsConfiguration) throws Exception { if (pluginsConfiguration == null) { ! return new ImagePluginStack(); } Map<Plugin.CATEGORY, List<Plugin>> plugins = new LinkedHashMap<>(); for (Plugin.CATEGORY cat : CATEGORIES_ORDER) { plugins.put(cat, new ArrayList<>()); }
*** 148,163 **** public ExecutableImage getExecutableImage() { throw new PluginException("No directory setup to store files"); } @Override ! public void storeFiles(Pool files, String bom) { throw new PluginException("No directory setup to store files"); } }; } PluginContext ctxt = pluginsConfiguration.getPluginContext(); return new ImagePluginStack(builder, transformerPlugins, ! lastSorter, postProcessingPlugins, ctxt, bom); } } --- 141,156 ---- public ExecutableImage getExecutableImage() { throw new PluginException("No directory setup to store files"); } @Override ! public void storeFiles(Pool files) { throw new PluginException("No directory setup to store files"); } }; } PluginContext ctxt = pluginsConfiguration.getPluginContext(); return new ImagePluginStack(builder, transformerPlugins, ! lastSorter, postProcessingPlugins, ctxt); } }
< prev index next >