バンドルを展開するためだけに、初期バンドル レベルを設定する方法を知っています。
bundlelevel -i 5
しかし、既存のバンドルのレベルを変更するにはどうすればよいですか? bundlelevel のヘルプは次のように述べています。
bundlelevel - set bundle start level or initial bundle start level
scope: felix
flags:
-i, --setinitial set the initial bundle start level
-s, --setlevel set the bundle's start level
parameters:
int target level
Bundle[] target identifiers
bundlelevel - query bundle start level
scope: felix
parameters:
Bundle bundle to query
「Bundle[]」引数が何であるかわかりません。bundle_id と [bundle_id]、さらにはバンドル名だけを試しました。
例を示しましょう。バンドル 5 (bookshelf api) のレベルを 1 から 2 に変更したいとします。
g! lb
START LEVEL 5
ID|State |Level|Name
0|Active | 0|System Bundle (3.0.7)
1|Active | 1|Apache Felix Bundle Repository (1.6.2)
2|Active | 1|Apache Felix Gogo Command (0.6.1)
3|Active | 1|Apache Felix Gogo Runtime (0.6.1)
4|Active | 1|Apache Felix Gogo Shell (0.6.1)
5|Active | 1|Bookshelf Inventory API (1.5.0)
私は次のことを試しました:
g! bundlelevel -s 2 [5]
gogo: IllegalArgumentException: Cannot coerce
bundlelevel(String, String, ArrayList) to any of
[(boolean, boolean, int, Bundle[]), (Bundle)]
g! bundlelevel -s 2 5
Must specify target bundles.
どんな助けでも大歓迎です。