A monitor for changes in the filesystem
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
com.sun.jna.examples.win32.tests Added tests Mar 13, 2010
com.sun.jna.examples.win32
file.monitor.core
file.monitor.inotify Renamed from win32 -> windows, added CM support Feb 23, 2010
file.monitor.osgi.component Renamed from win32 -> windows, added CM support Feb 23, 2010
file.monitor.osgi.event
file.monitor.osgi.example.event Renamed from win32 -> windows, added CM support Feb 23, 2010
file.monitor.osgi.example.log Renamed from win32 -> windows, added CM support Feb 23, 2010
file.monitor.osgi.windows.component Renamed from win32 -> windows, added CM support Feb 23, 2010
file.monitor.target
file.monitor.windows Renamed from win32 -> windows, added CM support Feb 23, 2010
.gitignore Initial commit Feb 22, 2010
README.textile Changed readme, added license Feb 22, 2010

README.textile

A file monitor for Java (OSGi) applications.

{toc}

Introduction

It uses a system function to notifiy listeners about changes in the file-system.

Usage

General

Some examples of usage are:

In an OSGi environment

The code was developed for OSGi environments in mind. All provided jars are valid OSGi bundles.

Implementations

Supported file-systems

Currently there is only a Win32 implementation based on ReadDirectoryChangesW.
Feel free to fork this repository and add an implementation for your file-system.

OSGi support

The file.monitor.osgi.event implements an FileListener that translates the FileEvent into a EventAdmin event with topic and properties.

License

This code and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html.