[ https://issues.apache.org/jira/browse/FELIX-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095332#comment-14095332 ]
Thomas GILLET commented on FELIX-3195: -------------------------------------- Hello, I just made this modification to the Felix launcher, so here is the patch, in case someone is still interested. Probably the same modifications as Andreas did, but the auto-deploy actions are taken into account. Properties are: * {{felix.auto.deploy.<group>.dir}} * {{felix.auto.deploy.<group>.action}} * {{felix.auto.deploy.<group>.startlevel}} Where {{<group>}} is used to link properties together. It is optional so the whole thing should be backward-compatible. Also directories are deployed in the alphabetical order of the group names. As Andreas said, it's merely a loop around the original {{processAutoDeploy()}} code. Works fine for me, but the "uninstall" action may use a little more thoughts, since it can produce strange results sometime (more details in the source code). _Note:_ I'm still using R4.3, so I made the patch from Felix 4.2.1. _Note:_ The patch also contains modification of the {{config.properties}} file, so 2 components are impacted. > Allow definition of multiple auto-deploy directories w/ run levels per > directory > -------------------------------------------------------------------------------- > > Key: FELIX-3195 > URL: https://issues.apache.org/jira/browse/FELIX-3195 > Project: Felix > Issue Type: Improvement > Components: Main > Affects Versions: framework-4.0.0 > Environment: any > Reporter: Andreas Schlosser > Priority: Minor > > We put a slight addition into the launcher to get the bundle setup easier to > handle. We added start levels to auto-deploy directory configurations; this > allows you to configure multiple auto-deploy directories and have all of the > bundles in a single directory deployed and started with the defined run > level. This makes configuration easier compared to listing all bundles for > each start level explicitly. We used the same syntax you already use for > autostart, i.e. felix.auto.deploy.dir.<N>=/some/bundle/dir > Maybe you want to consider adding this to the default distribution. The only > change we did is really do add an additional loop into the AutoProcessor. In > case you want to put it in maybe you want to add some more in there around > auto-deploy actions per run level... -- This message was sent by Atlassian JIRA (v6.2#6252)