Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions test/jdk/tools/jpackage/share/AppContentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,16 @@ private static Path copyAppContentPath(Path appContentPath) throws IOException {

private static Path createAppContentLink(Path appContentPath) throws IOException {
var appContentArg = TKit.createTempDirectory("app-content");
Path dstPath;
if (copyInResources) {
appContentArg = appContentArg.resolve(RESOURCES_DIR).resolve(LINKS_DIR);
} else {
appContentArg = appContentArg.resolve(RESOURCES_DIR);
dstPath = appContentArg.resolve(LINKS_DIR)
.resolve(appContentPath.getFileName());
} else {
appContentArg = appContentArg.resolve(LINKS_DIR);
dstPath = appContentArg.resolve(appContentPath.getFileName());
}

var dstPath = appContentArg.resolve(appContentPath.getFileName());
Files.createDirectories(dstPath.getParent());

// Create target file for a link
Expand Down