Search code examples
sling

Is there any possibility to add Apache FileVault package to provisioned Sling's files?


I am using Sling Launchpad with provisioning config file. Recently I would add support for FileVault packages (that are zip files). I have added package type of project and add it to my provisioning file. Unfortunately, it is not supporting those file type. Did anybody has same problem, and, if isn't supporting packages at all, how to install packages during Sling startup?

I have reviewed OSGiInstaller class in Sling source code, and there are only installing things from RegisteredResource class, which is located in RegisteredResourcesList.ser file (some kind of binary file), but I can see only jar files...

Thanks!


Solution

  • I don't think there's out of the box support for that in Sling, but the OSGi installer does provide the necessary hooks to support new resource types, besides bundles and configs. You'd need to implement a ResourceTransformer to dispatch the vlt archives, an InstallTaskFactory to create the relevant InstallTask from the files extracted from the vlt archive, and implement new task types for the vlt-specific file types.

    If you want to do that it would be best to discuss the design on the Sling dev mailing list first.