laeubi commented on PR #77:
URL: https://github.com/apache/maven-filtering/pull/77#issuecomment-1820426240

   > @laeubi would it be possible to add a unit test that showcases the issue 
and the proposed fix?
   
   It should be possible to reproduce the problem a testcase should be setup 
like this:
   
   1. `BuildContext` reports an incremental build
   2. There should be resource `A` + `B`
   3. The resource target folder is empty
   4. `BuildContext` only contains a change for `A`
   
   Result is only `A` is copied (as it has a change) but `B` is missing because 
the Mojo assumes that a file in resource target can never vanish and do assume 
it will get a change event for that, what can not be guaranteed as a file can 
always be deleted out of the control of maven / IDE /...
   
   Another case is that you *modify* the target file (but not the source) then 
the mojo will never update that file as long as one do not modify the source 
file.


-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to