[ 
https://issues.apache.org/jira/browse/KARAF-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet moved FELIX-2141 to KARAF-73:
---------------------------------------------

              Project: Karaf  (was: Felix)
                  Key: KARAF-73  (was: FELIX-2141)
    Affects Version/s:     (was: karaf-1.4.0)
          Component/s:     (was: Karaf)
        Fix Version/s:     (was: karaf 1.8.0)

> Add features:info command
> -------------------------
>
>                 Key: KARAF-73
>                 URL: https://issues.apache.org/jira/browse/KARAF-73
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Ɓukasz Dywicki
>            Assignee: Guillaume Nodet
>         Attachments: desc_tree-commands.patch, info-command.patch
>
>
> Currently there is no way to check contents of the feature. It's also hard to 
> determine what dependencies feature has.
> First command - describes feature using Feature instance. Command by default 
> displays info about configuration (-c), dependencies (-d) and bundles (-b 
> option) in feature.
> {code}
> ka...@root> features:desc payment-service
> Description of payment-service 1.0.0.SNAPSHOT feature
> ----------------------------------------------------------------
> Feature has no configuration.
> Feature dependens on:
>   datasource 0.0.0
>   dataaccess 0.0.0
>   activemq-camel 0.0.0
>   camel-jetty 0.0.0
>   contract 0.0.0
> Feature contains followed bundles:
>   mvn:org.code-house.esb.payment/engine/1.0.0.SNAPSHOT
>   mvn:org.code-house.esb.payment/binding/1.0.0.SNAPSHOT
>   mvn:org.code-house.esb.payment/persistence/1.0.0.SNAPSHOT
> {code}
> Second command displays features tree. If user will pass -b parameter feature 
> bundles will be attached to tree.
> {code}
> ka...@root> features:tree payment-service
>  payment-service 1.0.0.SNAPSHOT
>     datasource 0.0.0
>        activemq 0.0.0 *
>        postgresql 8.3
>        spring 2.5.6.SEC01
>        commons-dbcp 0.0.0
>     dataaccess 1.0.0.SNAPSHOT
>        domain 1.0.0.SNAPSHOT
>           persistence-api 1.0.0
>        hibernate 0.0.0
>           persistence-api 1.0.0
>     activemq-camel 5.3.0-fuse-01-00
>     camel-jetty 0.0.0 *
>     contract 1.0.0.SNAPSHOT
> Tree contains 2 unresolved dependencies
>  * means that node declares dependency but the dependant feature is not 
> available.
> {code}
> {code}
> ka...@root> features:tree domain
>  domain 1.0.0.SNAPSHOT
>     persistence-api 1.0.0
> {code}
> {code}
> ka...@root> features:tree -b domain
>  domain 1.0.0.SNAPSHOT
>  + mvn:org.code-house/domain/1.0.0.SNAPSHOT
>  + mvn:org.code-house.security/domain/1.0.0.SNAPSHOT
>  \ mvn:org.code-house.shippingstock/domain/1.0.0.SNAPSHOT
>     persistence-api 1.0.0
>     \ mvn:javax.persistence/com.springsource.javax.persistence/1.0.0
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to