[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] [prov] directory watcher
- From: "Alex Blewitt" <alex.blewitt@xxxxxxxxx>
- Date: Thu, 30 Aug 2007 08:58:07 +0100
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UQLtgFKLZHL41YaOkuspwS22saxwjlumrlABL4iL/SaqhUIgr10N1s4MIOFundD1JalVF22nSOfR18tBpiMLOmyDYd7DDNXpXzrdWL1AyyCQK+ecbi6rUNICFefINfXQAZ/qqeJgmwSgvGSMW2voWogvwIYfN8WL2uXVAP18EQY=
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?
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
> 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
> equinox-dev mailing list