Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 11 jdk.jlink.jmod - JLink Tool
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool,
which can be invoked by the "jlink" command.
JDK 11 JLink tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jlink.jmod.
JDK 11 JLink tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JLink tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jlink.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/tools/jlink/internal/packager/AppRuntimeImageBuilder.java
/*
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.tools.jlink.internal.packager;
import jdk.tools.jlink.builder.DefaultImageBuilder;
import jdk.tools.jlink.internal.Jlink;
import jdk.tools.jlink.internal.JlinkTask;
import jdk.tools.jlink.plugin.Plugin;
import java.io.File;
import java.io.IOException;
import java.lang.module.ModuleFinder;
import java.nio.ByteOrder;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* AppRuntimeImageBuilder is a private API used only by the Java Packager to generate
* a Java runtime image using jlink. AppRuntimeImageBuilder encapsulates the
* 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;
private Boolean stripNativeCommands = null;
public AppRuntimeImageBuilder() {}
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) {
addModules = value;
}
public void setLimitModules(Set<String> value) {
limitModules = value;
}
public void setExcludeFileList(String value) {
excludeFileList = value;
}
public void setStripNativeCommands(boolean value) {
stripNativeCommands = value;
}
public void setUserArguments(Map<String, String> value) {
userArguments = value;
}
public void build() throws IOException {
// jlink main arguments
Jlink.JlinkConfiguration jlinkConfig =
new Jlink.JlinkConfiguration(new File("").toPath(), // Unused
addModules,
ByteOrder.nativeOrder(),
moduleFinder(modulePath,
limitModules, addModules));
// plugin configuration
List<Plugin> plugins = new ArrayList<Plugin>();
if (stripNativeCommands) {
plugins.add(Jlink.newPlugin(
"strip-native-commands",
Collections.singletonMap("strip-native-commands", "on"),
null));
}
if (excludeFileList != null && !excludeFileList.isEmpty()) {
plugins.add(Jlink.newPlugin(
"exclude-files",
Collections.singletonMap("exclude-files", excludeFileList),
null));
}
// add user supplied jlink arguments
for (Map.Entry<String, String> entry : userArguments.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
plugins.add(Jlink.newPlugin(key,
Collections.singletonMap(key, value),
null));
}
// build the image
Jlink.PluginsConfiguration pluginConfig = new Jlink.PluginsConfiguration(
plugins, new DefaultImageBuilder(outputDir, launchers), null);
Jlink jlink = new Jlink();
jlink.build(jlinkConfig, pluginConfig);
}
/*
* Returns a ModuleFinder that limits observability to the given root
* modules, their transitive dependences, plus a set of other modules.
*/
public static ModuleFinder moduleFinder(List<Path> modulepaths,
Set<String> roots,
Set<String> otherModules) {
return JlinkTask.newModuleFinder(modulepaths, roots, otherModules);
}
}
⏎ jdk/tools/jlink/internal/packager/AppRuntimeImageBuilder.java
Or download all of them as a single archive file:
File name: jdk.jlink-11.0.1-src.zip File size: 155677 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jshell.jmod - JShell Tool
2020-06-30, ≈47🔥, 0💬
Popular Posts:
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
JDK 8 tools.jar is the JAR file for JDK 8 tools. It contains Java classes to support different JDK t...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...