[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [equinox-dev] [prov] directory watcher
|
Interesting. Does it periodically scan for changes, or does it hook in
with the underlying file system notifications to receive changes? I
believe that the Win32 resources API has the ability to pick up
changes; it would be good if that worked for other systems too.
Does it do the reverse, uninstalling a bundle if the corresponding
file is deleted?
Alex.
On 30/08/2007, Jeff McAffer <Jeff_McAffer@xxxxxxxxxx> wrote:
>
> I finally did something that has been on my list for quite some time.
> Inspired by Peter Kriens' FileInstall bundle, I made a DirectoryWatcher
> that, as the name implies, watches a directory and installs, uninstalls,
> configures, ... things that are dropped into/removed from/changed in the
> dir. The current working support directly calls installBundle() etc but I
> have also been working on one that calls p2 API to effect and install. The
> design consists of a DirectoryWatcher with which you can register listeners.
> The listeners then get added, removed and changed events for the files of
> interest in the directory being watched. It is quite easy to create a new
> listener that does your own thing.
>
> Keeping in mind that this is quite early, take a look at
> org.eclipse.equinox.p2.directorywatcher
> I have added not this to the PSF files yet as there are some compile errors
> in the provisioning listener as I have not completed enhancing the metadata
> generator to work on individual files rather than directories. More to come
> later...
>
> Jeff
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>