ch.vorburger.fswatch

April 2, 2026 ยท View on GitHub

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.

Last but not least, https://github.com/vorburger/ch.vorburger.exec is another handy small library from the same author.