[ 
https://issues.apache.org/jira/browse/SLING-4728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14573069#comment-14573069
 ] 

Bertrand Delacretaz commented on SLING-4728:
--------------------------------------------

Another experiment in 
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/crankstart2/ : 
I've created a Sling launchpad with a minimal provisioning model that installs 
just what's needed to support a bootstrap bundle that reads the provisioning 
model from disk and installs its contents. This requires no changes to the 
Sling code, just a specific Launchpad build and the support bundle which is 
quite simple (but probably incomplete so far).

That works, at revision 1683526 starting the {{org.apache.sling.crankstart2}} 
jar with {{-D 
provisioning.model.folder=<sling-source-folder>/sling/launchpad/builder/src/main/provisioning}}
 installs and starts all bundles from that full Sling launchpad provisioning 
model.

However, a minimal launcher that just reads the model and installs its bundles 
and configs would match the existing Crankstart functionality better and be 
more lightweight. I'll experiment with that next.

> Crankstart should use the Sling Provisioning Model
> --------------------------------------------------
>
>                 Key: SLING-4728
>                 URL: https://issues.apache.org/jira/browse/SLING-4728
>             Project: Sling
>          Issue Type: Improvement
>          Components: Crankstart
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>
> Crankstart should be converted to use the Sling Provisioning Model that was 
> created in the meantime.
> This should preserve the following features:
> Set Initial classpath, select framework version
> Set defaults for variables, override with system properties
> Set OSGi framework properties, with variable
> Install configs early, as soon as ConfigAdmin is available
> OSGi configs with typed values
> Guard against multiple factory config creation (CRANKSTART_CONFIG_ID)
> Ability to register new startup commands
> mvn:protocol is optional, can also use http
> log messages during startup



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to