< prev index next >
src/jdk.jlink/share/classes/jdk/tools/jlink/internal/packager/AppRuntimeImageBuilder.java
Print this page
@@ -47,10 +47,11 @@
* arguments that jlink requires to generate this image. To create the image call the
* build() method.
*/
public final class AppRuntimeImageBuilder {
private Path outputDir = null;
+ private Map<String, String> launchers = Collections.emptyMap();
private List<Path> modulePath = null;
private Set<String> addModules = null;
private Set<String> limitModules = null;
private String excludeFileList = null;
private Map<String, String> userArguments = null;
@@ -60,10 +61,14 @@
public void setOutputDir(Path value) {
outputDir = value;
}
+ public void setLaunchers(Map<String, String> value) {
+ launchers = value;
+ }
+
public void setModulePath(List<Path> value) {
modulePath = value;
}
public void setAddModules(Set<String> value) {
@@ -118,11 +123,11 @@
null));
}
// build the image
Jlink.PluginsConfiguration pluginConfig = new Jlink.PluginsConfiguration(
- plugins, new DefaultImageBuilder(outputDir), null);
+ plugins, new DefaultImageBuilder(outputDir, launchers), null);
Jlink jlink = new Jlink();
jlink.build(jlinkConfig, pluginConfig);
}
/*
< prev index next >