[ 
https://issues.apache.org/jira/browse/MRRESOURCES-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907614#comment-17907614
 ] 

ASF GitHub Bot commented on MRRESOURCES-155:
--------------------------------------------

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





> Allow to override bundle resources by project workspace files
> -------------------------------------------------------------
>
>                 Key: MRRESOURCES-155
>                 URL: https://issues.apache.org/jira/browse/MRRESOURCES-155
>             Project: Maven Remote Resources Plugin
>          Issue Type: New Feature
>            Reporter: Slawomir Jaranowski
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 3.3.0
>
>
> Make same named project files take precedence over ones from the remote 
> resource bundle.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to