8375364: [macos] Some jpackage signing tests fail after JDK-8375240

Reviewed-by: almatvee
This commit is contained in:
Alexey Semenyuk 2026-01-16 02:51:40 +00:00
parent fddba3b7ec
commit 9876875e37

View File

@ -971,7 +971,7 @@ public class JPackageCommand extends CommandArguments<JPackageCommand> {
executePrerequisiteActions();
nullableOutputBundle().filter(_ -> {
return removeOldOutputBundle;
return !(TKit.isOSX() && MacHelper.signPredefinedAppImage(this)) && removeOldOutputBundle;
}).ifPresent(path -> {
ThrowingRunnable.toRunnable(() -> {
if (Files.isDirectory(path)) {