You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Erwin Hogeweg <er...@me.com> on 2015/02/25 18:41:59 UTC

Script to change start-level

Hi,

I am trying to come up with a script to change the start level of a bunch of bundles at once, but so far no luck.

First I tried the obvious: 'bundle:start-level 90-150 40', that didn't work :-)
Than I tried various iterations of 'list = [90-150]; each ($list) { bundle:start-level 40 }' but there doesn't appear to be a way (At least I can't find it) to specify a range for a list, so the value inside the brackets just evaluates to '90-150' :-) I tried comma, semi-colon, ellipses, colon, all to no avail.

In the time I spent on the script I could have typed the entire range by hand dozens of time. That wouldn't have been fun though :-)

Any suggestions are appreciated.

Erwin

Re: Script to change start-level

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Erwin,

bundle:start-level with id range or name regex should work.

Let me check the command.

Regards
JB

On 02/25/2015 06:41 PM, Erwin Hogeweg wrote:
> Hi,
>
> I am trying to come up with a script to change the start level of a bunch of bundles at once, but so far no luck.
>
> First I tried the obvious: 'bundle:start-level 90-150 40', that didn't work :-)
> Than I tried various iterations of 'list = [90-150]; each ($list) { bundle:start-level 40 }' but there doesn't appear to be a way (At least I can't find it) to specify a range for a list, so the value inside the brackets just evaluates to '90-150' :-) I tried comma, semi-colon, ellipses, colon, all to no avail.
>
> In the time I spent on the script I could have typed the entire range by hand dozens of time. That wouldn't have been fun though :-)
>
> Any suggestions are appreciated.
>
> Erwin
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com