arturobernalg commented on code in PR #690:
URL: https://github.com/apache/maven-war-plugin/pull/690#discussion_r4667802607


##########
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:
   Fair point. Dropped the size comparison and switched to comparing actual 
content (FileUtils.contentEquals) in ad27570 — directories still use the 
original mtime-only check.



-- 
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]

Reply via email to