2011-01-27 6 views
0

난 그냥 배포 할 번들, 초기 번들 레벨을 설정하는 방법을 알고 :펠릭스에서 번들 레벨을 변경 하시겠습니까?

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_id와 [bundle_id], 심지어 번들 이름을 시도했다.

예를 들어 설명해 드리겠습니다. 의 난 다음 내가 시도 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) 

1에서 번들 5 (책장 API) 수준을 변경하려면 가정 해 봅시다 :

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. 

어떤 도움에 감사드립니다.

답변

0

FUSE ESB에서 약간의 경험을했지만 결코 펠릭스를 사용하지 않았습니다. 그냥 펠릭스 3.0.8을 다운로드 시도 :

g! lb 
START LEVEL 1 
    ID|State  |Level|Name 
    0|Active  | 0|System Bundle (3.0.8) 
    1|Active  | 1|Apache Felix Bundle Repository (1.6.2) 
    2|Active  | 1|Apache Felix Gogo Command (0.8.0) 
    3|Active  | 1|Apache Felix Gogo Runtime (0.8.0) 
    4|Active  | 1|Apache Felix Gogo Shell (0.8.0) 

g! bundlelevel -s 10 4 

g! lb 
START LEVEL 1 
    ID|State  |Level|Name 
    0|Active  | 0|System Bundle (3.0.8) 
    1|Active  | 1|Apache Felix Bundle Repository (1.6.2) 
    2|Active  | 1|Apache Felix Gogo Command (0.8.0) 
    3|Active  | 1|Apache Felix Gogo Runtime (0.8.0) 
    4|Resolved | 10|Apache Felix Gogo Shell (0.8.0) 
g! 

내가 당신의 문제를 재현하기 위해 열심히 노력하지만 할 수 없습니다. 그것은 지정된대로 작동합니다. 당신은 신선한 설치 또는 더 새로운 펠릭스 버전으로 그것을 시도 했습니까 (당신이 무엇을 사용하는지 모른다)?

+0

고맙습니다. GOGO 셸과 런타임의 이전 버전 (0.6 ???)을 사용하고있었습니다! – drozzy

1

가장 명확한 구문 메시지가 아닙니다. Bundle []은 번들 ID를 나타냅니다. 레벨 4와 10 번들 수행

bundlelevel -s : 파운드를 수행 원하는 번들 ID를 얻을, 다음

bundlelevel -s NEW_LEVEL BUNDLE_ID

예를 실행 4 10

-s가 누락되어 불만을 제기했을 수 있습니까?

+0

아니요, 여전히 작동하지 않습니다. id = 5, level = 1 인 번들이 있고 레벨 2로 변경하고 싶다면 : "bundlelevel -s 2 5"펠릭스는 "대상 번들을 지정해야합니다"라고 말합니다. – drozzy

관련 문제