elharo commented on code in PR #97:
URL: https://github.com/apache/maven-filtering/pull/97#discussion_r1504286180
##########
src/main/java/org/apache/maven/shared/filtering/FilteringUtils.java:
##########
@@ -371,6 +375,23 @@ private static void copyFilePermissions(File source, File
destination) throws IO
}
}
+ @SuppressWarnings("ResultOfMethodCallIgnored")
+ private static void setAllPermissions(File file) throws IOException {
+ if (file.exists()) {
+ try {
+ Files.setPosixFilePermissions(
+ file.toPath(),
+ EnumSet.of(
+ PosixFilePermission.OWNER_READ,
PosixFilePermission.OWNER_WRITE,
+ PosixFilePermission.GROUP_READ,
PosixFilePermission.GROUP_WRITE,
+ PosixFilePermission.OTHERS_READ,
PosixFilePermission.OTHERS_WRITE));
Review Comment:
copyFilePermissions might belong in the public copyFile method above then.
As is, that's not necessarily called.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]