mbien commented on code in PR #107: URL: https://github.com/apache/netbeans-nbpackage/pull/107#discussion_r2179791688
########## src/main/java/org/apache/netbeans/nbpackage/deb/DebTask.java: ########## @@ -199,7 +199,11 @@ private void setupLauncher(Path binDir, String packageLocation, String execName) Map.of("PACKAGE", packageLocation, "EXEC", execName)); Path bin = binDir.resolve(execName); Files.writeString(bin, script, StandardOpenOption.CREATE_NEW); - Files.setPosixFilePermissions(bin, PosixFilePermissions.fromString("rwxr-xr-x")); + try { + Files.setPosixFilePermissions(bin, PosixFilePermissions.fromString("rwxr-xr-x")); + } catch (UnsupportedOperationException ex) { + context().warningHandler().accept("UnsupportedOperationException : PosixFilePermissions"); + } Review Comment: you don't want to pass the exception so that the stack trace can be extracted when needed? Could be linked to a verbosity level or something like that. edit: alternative would be to mention the file name in the msg? -- 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: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists