This is really cool!

Whether you want to add it to Felix or to Sling is tricky, because it
would have a right to be in both but I would argue that Felix is the
better place since it is independent from Sling. Either way, great
work and +1 to make it available at either Felix or Sling.

regards,

Karl

p.s.: Peter Kriens asked whether we at Felix would be interested in
his FileInstall bundle so maybe we could just merge the two at Felix?

On 12/4/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Inspired by Peter Kriens' FileInstall [1] tool, I created JcrInstall.
> This tool works almost exactly as the original FileInstall with the
> following differences:
>
>    (1) It operates on JCR repository
>    (2) It uses JCR Observation instead of polling
>    (3) It just has a single instance, thus supporting a single location
> only
>
> Other than that if works the same:
>
>    * Storing JAR files installes contained bundles
>    * Updating JAR files updates the bundles
>    * Removing JAR files unsinstalls bundles
>    * Storing or updated configuration files (extension is ".cfg")
>      creates or updates ConfigurationAdmin configuration
>    * Removed configuration files deletes configuration
>
> The full path of JAR files with a prefix of "jcrinstall:" is used as the
> Bundle location. The name (without the path and the .cfg extension) of
> configuration files is used to designate the configuration PID. The name
> is turned into factory and configuration PID in the same way as for
> FileInstall.
>
> I propose to add this to Sling. WDYT ?
>
> Alternatively, as it touches generic OSGi rather than Sling as a Web
> Application Framework I could imagine adding it to the Apache Felix
> project. WDYT ?
>
> Regards
> Felix
>
> [1] http://www.aqute.biz/Code/FileInstall
>
>


-- 
Karl Pauls
[EMAIL PROTECTED]

Reply via email to