< prev index next >
test/jdk/tools/jpackage/share/LicenseTest.java
Print this page
@@ -108,13 +108,11 @@
LICENSE_FILE.getFileName());
return licensePath;
}
private static Path debLicenseFile(JPackageCommand cmd) {
- final Path licensePath = Path.of("/usr", "share", "doc",
- LinuxHelper.getPackageName(cmd), "copyright");
- return licensePath;
+ return cmd.appInstallationDirectory().resolve("share/doc/copyright");
}
private static void verifyLicenseFileInLinuxPackage(JPackageCommand cmd,
Path expectedLicensePath) {
Test.assertTrue(LinuxHelper.getPackageFiles(cmd).filter(path -> path.equals(
< prev index next >