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 17 jdk.jpackage.jmod - JPackage Tool
JDK 17 jdk.jpackage.jmod is the JMOD file for JDK 17 JPackage tool,
which can be invoked by the "jpackage" command.
JDK 17 JPackage tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jpackage.jmod.
JDK 17 JPackage tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JPackage tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jpackage.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jpackage/internal/ApplicationLayout.java
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.jpackage.internal;
import java.nio.file.Path;
import java.util.Map;
/**
* Application directory layout.
*/
public final class ApplicationLayout implements PathGroup.Facade<ApplicationLayout> {
enum PathRole {
/**
* Java run-time directory.
*/
RUNTIME,
/**
* Java run-time home directory.
*/
RUNTIME_HOME,
/**
* Application data directory.
*/
APP,
/**
* Directory with application launchers.
*/
LAUNCHERS,
/**
* Directory for files for desktop integration.
*/
DESKTOP,
/**
* Directory with application Java modules.
*/
MODULES,
/**
* Linux app launcher shared library.
*/
LINUX_APPLAUNCHER_LIB
}
ApplicationLayout(Map<Object, Path> paths) {
data = new PathGroup(paths);
}
private ApplicationLayout(PathGroup data) {
this.data = data;
}
@Override
public PathGroup pathGroup() {
return data;
}
@Override
public ApplicationLayout resolveAt(Path root) {
return new ApplicationLayout(pathGroup().resolveAt(root));
}
/**
* Path to launchers directory.
*/
public Path launchersDirectory() {
return pathGroup().getPath(PathRole.LAUNCHERS);
}
/**
* Path to application data directory.
*/
public Path appDirectory() {
return pathGroup().getPath(PathRole.APP);
}
/**
* Path to Java run-time directory.
*/
public Path runtimeDirectory() {
return pathGroup().getPath(PathRole.RUNTIME);
}
/**
* Path to Java run-time home directory.
*/
public Path runtimeHomeDirectory() {
return pathGroup().getPath(PathRole.RUNTIME_HOME);
}
/**
* Path to application mods directory.
*/
public Path appModsDirectory() {
return pathGroup().getPath(PathRole.MODULES);
}
/**
* Path to directory with application's desktop integration files.
*/
public Path destktopIntegrationDirectory() {
return pathGroup().getPath(PathRole.DESKTOP);
}
static ApplicationLayout linuxAppImage() {
return new ApplicationLayout(Map.of(
PathRole.LAUNCHERS, Path.of("bin"),
PathRole.APP, Path.of("lib/app"),
PathRole.RUNTIME, Path.of("lib/runtime"),
PathRole.RUNTIME_HOME, Path.of("lib/runtime"),
PathRole.DESKTOP, Path.of("lib"),
PathRole.MODULES, Path.of("lib/app/mods"),
PathRole.LINUX_APPLAUNCHER_LIB, Path.of("lib/libapplauncher.so")
));
}
static ApplicationLayout windowsAppImage() {
return new ApplicationLayout(Map.of(
PathRole.LAUNCHERS, Path.of(""),
PathRole.APP, Path.of("app"),
PathRole.RUNTIME, Path.of("runtime"),
PathRole.RUNTIME_HOME, Path.of("runtime"),
PathRole.DESKTOP, Path.of(""),
PathRole.MODULES, Path.of("app/mods")
));
}
static ApplicationLayout macAppImage() {
return new ApplicationLayout(Map.of(
PathRole.LAUNCHERS, Path.of("Contents/MacOS"),
PathRole.APP, Path.of("Contents/app"),
PathRole.RUNTIME, Path.of("Contents/runtime"),
PathRole.RUNTIME_HOME, Path.of("Contents/runtime/Contents/Home"),
PathRole.DESKTOP, Path.of("Contents/Resources"),
PathRole.MODULES, Path.of("Contents/app/mods")
));
}
public static ApplicationLayout platformAppImage() {
if (Platform.isWindows()) {
return windowsAppImage();
}
if (Platform.isLinux()) {
return linuxAppImage();
}
if (Platform.isMac()) {
return macAppImage();
}
throw Platform.throwUnknownPlatformError();
}
public static ApplicationLayout javaRuntime() {
return new ApplicationLayout(Map.of(PathRole.RUNTIME, Path.of("")));
}
public static ApplicationLayout linuxUsrTreePackageImage(Path prefix,
String packageName) {
final Path lib = prefix.resolve(Path.of("lib", packageName));
return new ApplicationLayout(Map.of(
PathRole.LAUNCHERS, prefix.resolve("bin"),
PathRole.APP, lib.resolve("app"),
PathRole.RUNTIME, lib.resolve("runtime"),
PathRole.RUNTIME_HOME, lib.resolve("runtime"),
PathRole.DESKTOP, lib,
PathRole.MODULES, lib.resolve("app/mods"),
PathRole.LINUX_APPLAUNCHER_LIB, lib.resolve(
"lib/libapplauncher.so")
));
}
private final PathGroup data;
}
⏎ jdk/jpackage/internal/ApplicationLayout.java
Or download all of them as a single archive file:
File name: jdk.jpackage-17.0.5-src.zip File size: 92069 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jshell.jmod - JShell Tool
2023-08-03, ∼8815🔥, 0💬
Popular Posts:
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website . You can download them...
JDK 17 java.compiler.jmod is the JMOD file for JDK 17 Compiler module. JDK 17 Compiler module compil...