slawekjaranowski commented on code in PR #79:
URL: 
https://github.com/apache/maven-remote-resources-plugin/pull/79#discussion_r1894649114


##########
src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java:
##########
@@ -622,9 +630,10 @@ protected boolean copyResourceIfExists(File file, String 
relFileName, VelocityCo
                 source = templateSource;
             }
 
-            if (source.exists() && !source.equals(file)) {
+            if (source.exists() && !source.equals(outputFile)) {
                 if (source == templateSource) {
-                    try (CachingOutputStream os = new 
CachingOutputStream(file)) {
+                    getLog().debug("Use project resource '" + source + "' as 
resource with Velocity");
+                    try (CachingOutputStream os = new 
CachingOutputStream(outputFile)) {

Review Comment:
   done



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