JoergBudi opened a new pull request, #757: URL: https://github.com/apache/commons-io/pull/757
…oose to ignore touching of watched file So I got late to the old io-279 Tailer issue. In the long history, some changes were already made long ago. However from reading the last comments, some users want to avoid to get the whole file replayed when the timestamp of the watched file changes without a content update. I added an ignoreTouch option, the default is false and resembles current behaviour (file gets replayed) (inspired from the 2015 patch by gh user myyron). When changed to true via the Builder pattern, a newertimestamp with constant content gets ignored. That makes the Tailer more similar to "tail -f" (issuing touch on the watched file is ignored then), but note that subtle differences remain. When you copy the identical file onto watched file, "tail -f" realizes that and replays the whole file. With ignoreTouch=true, the Tailer ignores that, as it looks identical to touching. Added 2 Junit tests to verify both behaviours explictly. WIP (work in progress): Need still to check github workflow outputs for the various platforms -- 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]
