You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Reto Bachmann-Gmür <re...@apache.org> on 2012/07/27 10:54:01 UTC

Change Startlevel of bundles from partial bundle lists (was Re: how to make sure a bundle is configured before it is first startes)

Hi,

Is there any way changing the startlevel of bundles from partial bundle
lists can be done (without changing the partial bundle list) of shall I
open an issue for this feature?

Cheers,
Reto

On Wed, Jul 18, 2012 at 10:05 PM, Reto Bachmann-Gmür <re...@apache.org>wrote:

> Hi,
>
> As the other options seem t fail I think I have to fail back to the
> fiddling with the startlevels variant
>
> On Mon, Jul 16, 2012 at 2:58 AM, Carsten Ziegeler <cz...@apache.org>wrote:
>
>> Using the Sling
>> installer, put it into a sub folder with the start level as the folder
>> name, or if you use the bundle list, create a section with the start
>> level.
>>
>
> As the bundles that need to get a new start-level are part of partial
> bundle lists I think I should change the levels with rules. Any
> hint/example on how I could do this? I already pasted what I've tried
>
>
> >
> > rule "increase stanbol level"
> >
> >     when
> >         $bundleList : BundleList()
> >         $startLevel : StartLevel() from $bundleList.startLevels
> >         $bundle : Bundle(groupId == "org.apache.stanbol")
> >             from $startLevel.bundles
> >     then
> >         System.out.println("increasing:" + $bundle.getArtifactId()+"
> > original: "+$bundle.getStartLevel());
> >         $bundle.setStartLevel($bundle.getStartLevel()+10);
> >
> > end
>
> Cheers,
> Reto
>