Bukama commented on code in PR #560:
URL: https://github.com/apache/maven-ear-plugin/pull/560#discussion_r4657265472


##########
src/main/java/org/apache/maven/plugins/ear/EarMojo.java:
##########
@@ -886,7 +886,9 @@ private void deleteOutdatedResources(final 
Collection<String> outdatedResources)
             if (resourceFile.lastModified() < startTime) {
                 getLog().debug("deleting outdated resource " + 
outdatedResource);
                 getLog().debug(outdatedResource + " last modified: " + 
resourceFile.lastModified());
-                resourceFile.delete();
+                if (!resourceFile.delete()) {

Review Comment:
   Agree it was not a problem until now and should not be in the future. Just 
mention it.



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