Skip to content

Commit c8e64e7

Browse files
author
Alexey Semenyuk
committed
8372118: Test tools/jpackage/macosx/DmgContentTest.java failed
Reviewed-by: almatvee
1 parent 1535d08 commit c8e64e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacDmgPackager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.io.File;
3131
import java.io.IOException;
3232
import java.nio.file.Files;
33+
import java.nio.file.LinkOption;
3334
import java.nio.file.Path;
3435
import java.text.MessageFormat;
3536
import java.util.Base64;
@@ -288,7 +289,7 @@ private void buildDMG() throws IOException {
288289
// Copy app image, since we did not create DMG with it, but instead we created
289290
// empty one.
290291
if (copyAppImage) {
291-
FileUtils.copyRecursive(srcFolder, mountedVolume);
292+
FileUtils.copyRecursive(srcFolder, mountedVolume, LinkOption.NOFOLLOW_LINKS);
292293
}
293294

294295
try {

0 commit comments

Comments
 (0)