Java lib for monitoring directories or individual files based on the java.nio.file.WatchService
.
Get it from Maven Central and see the ExampleMain class for how to use this library.
This code was originally (in 2015) written for https://github.com/vorburger/HoTea, and factored out of it in 2018 for re-use in project https://github.com/vorburger/ch.vorburger.osgi.gradle.
- google/guava#2030
- commons-io with its File Monitor: Polling, not using Java 7+ NIO WatchService.
- https://github.com/Hindol/commons
- https://github.com/SenorArchitect/fswatcher: NOK due to https://github.com/SenorArchitect/fswatcher/issues/2 :-(
- https://github.com/azemm/FsWatcher
- https://github.com/encima/FSWatcher7
- https://www.teamdev.com/jxfilewatcher: Commercial, are they serious?!