< prev index next >
src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxDebBundler.java
Print this page
*** 139,155 ****
}
return "Unknown";
},
(s, p) -> s);
- private static final BundlerParamInfo<String> COPYRIGHT_FILE =
- new StandardBundlerParam<>(
- Arguments.CLIOptions.LINUX_DEB_COPYRIGHT_FILE.getId(),
- String.class,
- params -> null,
- (s, p) -> s);
-
private final static String TOOL_DPKG_DEB = "dpkg-deb";
private final static String TOOL_DPKG = "dpkg";
public static boolean testTool(String toolName, String minVersion) {
try {
--- 139,148 ----
*** 327,347 ****
configDir.resolve("postinst"),
"resource.deb-postinstall-script").setExecutable());
debianFiles.add(new DebianFile(
configDir.resolve("postrm"),
"resource.deb-postrm-script").setExecutable());
-
- getConfig_CopyrightFile(params).getParentFile().mkdirs();
- String customCopyrightFile = COPYRIGHT_FILE.fetchFrom(params);
- if (customCopyrightFile != null) {
- IOUtils.copyFile(new File(customCopyrightFile),
- getConfig_CopyrightFile(params));
- } else {
debianFiles.add(new DebianFile(
getConfig_CopyrightFile(params).toPath(),
"resource.copyright-file"));
- }
for (DebianFile debianFile : debianFiles) {
debianFile.create(data, params);
}
}
--- 320,332 ----
< prev index next >