ch.vorburger.fswatch icon indicating copy to clipboard operation
ch.vorburger.fswatch copied to clipboard

Java lib for monitoring directories or individual files via java.nio.file.WatchService

ch.vorburger.fswatch

Java lib for monitoring directories or individual files based on the java.nio.file.WatchService.

Maven Central Javadocs Build Status

Usage

Get it from Maven Central and see the ExampleMain class for how to use this library.

History

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.

Related projects

  • https://github.com/google/guava/issues/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?!