File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
test/jdk/tools/jpackage/share Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,16 @@ private static Path copyAppContentPath(Path appContentPath) throws IOException {
162162
163163 private static Path createAppContentLink (Path appContentPath ) throws IOException {
164164 var appContentArg = TKit .createTempDirectory ("app-content" );
165+ Path dstPath ;
165166 if (copyInResources ) {
166- appContentArg = appContentArg .resolve (RESOURCES_DIR ).resolve (LINKS_DIR );
167- } else {
167+ appContentArg = appContentArg .resolve (RESOURCES_DIR );
168+ dstPath = appContentArg .resolve (LINKS_DIR )
169+ .resolve (appContentPath .getFileName ());
170+ } else {
168171 appContentArg = appContentArg .resolve (LINKS_DIR );
172+ dstPath = appContentArg .resolve (appContentPath .getFileName ());
169173 }
170174
171- var dstPath = appContentArg .resolve (appContentPath .getFileName ());
172175 Files .createDirectories (dstPath .getParent ());
173176
174177 // Create target file for a link
You can’t perform that action at this time.
0 commit comments