elharo commented on code in PR #690:
URL: https://github.com/apache/maven-war-plugin/pull/690#discussion_r4666361098
##########
src/main/java/org/apache/maven/plugins/war/packaging/AbstractWarPackagingTask.java:
##########
@@ -329,9 +329,12 @@ protected boolean copyFile(
context.addResource(targetFilename);
BasicFileAttributes readAttributes =
Files.readAttributes(source.toPath(), BasicFileAttributes.class);
+ // A directory source is archived into destination below, so its own
filesystem size has no
+ // relation to the resulting jar's size; only compare sizes for a
plain file source.
Review Comment:
That might be true but it's not what I was concerned about. I do not see any
reason to expect that destination.length() and readAttributes.size() are
measuring similar quantities. I think you're comparing apples to refrigerators
--
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]