Stirring this thread again as I have just 'borrowed' Ian's class (thanks!)
and am using it to deploy some config files to ${sling.home} via a bundle
on startup. It's quite nice to have and not a lot of code to make happen.
Our project also drops some osgi config files into ${sling.home}/config to
configure services on startup (FileInstall can add these configs a bit late
for some of our services) which Ian's changes facilitate without needing
extra provisioning scripts. Does this have use in Sling or is it just a
corner case?On Wed, Nov 23, 2011 at 6:15 PM, Ian Boston <[email protected]> wrote: > Hi, > Is there a standard way in the Sling bootstrap of allowing both the > bootstrap and bundles to place files under Sling Home, in the same way > that the content importer transfers resources from a jar into JCR ? > > Is it something that would be acceptable to the project, or is it an > OSGi anti-pattern ? (thinking of other modes of startup, eg kaffe, OBR > etc) > > I have code (1 class) that does it for version 2.3.0 of launchpad.base > app, but I am not certain that its relevant for Sling or other startup > modes. > Ian >
