From bf363388ec36cb46b0480b2b7a078f28c33a7799 Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 27 Oct 2023 14:56:27 +0800 Subject: [PATCH] Reimplement ShadowCopyAction.getPermissions --- .../gradle/plugins/shadow/tasks/ShadowCopyAction.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.groovy b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.groovy index 1ce816ddf..ab1471d1b 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.groovy +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.groovy @@ -534,7 +534,7 @@ class ShadowCopyAction implements CopyAction { @Override FilePermissions getPermissions() { - return this.isDirectory() ? DefaultFilePermissions.DEFAULT_DIR_PERMISSIONS : DefaultFilePermissions.DEFAULT_FILE_PERMISSIONS + return new DefaultFilePermissions(getMode()) } FileTreeElement asFileTreeElement() {