ebarboni commented on issue #453:
URL: 
https://github.com/apache/maven-resources-plugin/issues/453#issuecomment-3897516208

   it looks like the overwrite is passed to maven-filter shared.
   
   over there (maven filter 3.x branches) FilteringUtils.copyFile(from, to, 
encoding, array, false); use override false to handle old behaviour
   
   
https://github.com/apache/maven-filtering/blob/239f11c65b537bce3eff50d6c16f33a8a288eed9/src/main/java/org/apache/maven/shared/filtering/DefaultMavenFileFilter.java#L82C3-L99C8
   
   call to this method with false for overwrite
   
https://github.com/apache/maven-filtering/blob/239f11c65b537bce3eff50d6c16f33a8a288eed9/src/main/java/org/apache/maven/shared/filtering/FilteringUtils.java#L350
   
   call this but firstline grants write permission not taking care of overwrite 
true or false
   [    public static void copyFile(File from, File to, String encoding, 
FilterWrapper[] wrappers) throws IOException 
{](https://github.com/apache/maven-filtering/blob/239f11c65b537bce3eff50d6c16f33a8a288eed9/src/main/java/org/apache/maven/shared/filtering/FilteringUtils.java#L310)
   
   I quote @gnodet as author of the modification


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