Download Latest Version jfilewatcher-2.0.jar (474.3 kB)
Email in envelope

Get an email when there's a new version of jfilewatcher

Home
Name Modified Size InfoDownloads / Week
jfilewatcher-2.0.jar 2012-10-28 474.3 kB
README.TXT 2012-10-22 742 Bytes
Totals: 2 Items   475.0 kB 0
jfilewatcher is simple file watcher service written in Java. It uses the default polling method to check for new / modified / deleted files. It then sends events corresponding events. You can specify folder and multiple file patterns. It also provides a global lock facility to prevent multiple file watchers running at same time.


Here's how you use it from command line ...

java -jar jfilewatcher-2.0.jar /home /projects 


Here's how you use it programmatically ...

JFileWatcherService fservice = new JFileWatcherService();

// If you want to watch specific files, 
// pass second arg as an array of Strings of regexp patterns
fservice.watch(new File(args[0]), null); 

// Start file watcher service (it is a thread!)
fservice.start();
Source: README.TXT, updated 2012-10-22