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 {
162
162
163
163
private static Path createAppContentLink (Path appContentPath ) throws IOException {
164
164
var appContentArg = TKit .createTempDirectory ("app-content" );
165
+ Path dstPath ;
165
166
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 {
168
171
appContentArg = appContentArg .resolve (LINKS_DIR );
172
+ dstPath = appContentArg .resolve (appContentPath .getFileName ());
169
173
}
170
174
171
- var dstPath = appContentArg .resolve (appContentPath .getFileName ());
172
175
Files .createDirectories (dstPath .getParent ());
173
176
174
177
// Create target file for a link
You can’t perform that action at this time.
0 commit comments