Hi Xav,

First of all have you checked what the Karaf log says?

log:display

On 16/07/15 08:55, xav [via Karaf] wrote:
> Hi all,
>
> I try to extend the karaf command, I not use the blueprint, but ipojo.
> My bundle is works, it is active, but my new command is not available?
> Here a part of my code:
>
>
> @Component
> @Command(name = "hello", scope = "test", description = "Sample.")
> public class Sample extends AbstractAction {
>
>
> @ServiceProperty(name = "osgi.command.scope", value = "test")
> private String scope;
>
> @ServiceProperty(name = "osgi.command.function", value = "{}")
> private String[] _function = new String[]{
>   "help" };
>
> @Descriptor("Help command.")
> public void help(@Descriptor("Help command name") final String command) {
>
>
> }
>
> protected Object doExecute() throws Exception {
>   System.out.println("Executing help command");
>   return null;
> }
>
> }
>
> Any suggestion??
>
> Thanks
>
> Xav
>
>
>
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://karaf.922171.n3.nabble.com/Extending-karaf-command-tp4041458.html
> To start a new topic under Karaf - User, email 
> [email protected]
> To unsubscribe from Karaf - User, click here 
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=930749&code=a2FyYWZAYXZpb25pY2VuZ2luZWVycy5jb218OTMwNzQ5fDE5NTcyMjgxNDc=>.
> NAML 
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>  
>





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Extending-karaf-command-tp4041458p4041468.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to