Hi, On Mon, Mar 28, 2011 at 11:57 AM, Olivier Grisel <[email protected]> wrote: > 2011/3/28 Rupert Westenthaler <[email protected]>: >>... I would suggest to define a "stanbol.home" and interpret such path >> relative to this folder. >> Bundles that use the commons.web bundle would than to make sure (e.g. >> in the activate method) to copy such files to the specified directory. > > Yes it's probably simpler to copy all the contributed static resources > ( JS, css, logos and style images ...), and freemarker templates into > a two dedicated folders under the sling folder of the stanbol instance > at bundle activation time and register those folders for static > resource lookup and for the FreemarkerViewProcessor....
This sounds mildly scary - what happens for example when a bundle is removed, or upgraded? I'm not too familiar with how JAX-RS accesses its resources, couldn't that be delegated to an OSGi service? Contributing bundles could then supply a service that gives access to those resources. -Bertrand
