You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ShawnE (JIRA)" <ji...@apache.org> on 2016/08/23 15:39:20 UTC

[jira] [Comment Edited] (KARAF-4654) Karaf shell command

    [ https://issues.apache.org/jira/browse/KARAF-4654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432789#comment-15432789 ] 

ShawnE edited comment on KARAF-4654 at 8/23/16 3:39 PM:
--------------------------------------------------------

Thank you, your workaround works. Should the command 'addcommand' be added by default though, or should it be removed from the documentation ?

Also, is it possible to reset the value of '$processor' (such as with 'processor=') without printing its value on the console?


was (Author: shawne):
Thank you, your workaround works. Should the command 'addcommand' be added by default though, or should it be removed from the documentation ?

Also, is it possible to reset the value of the variable 'processor' (such as with 'processor=') without printing its value on the screen ?

> Karaf shell command
> -------------------
>
>                 Key: KARAF-4654
>                 URL: https://issues.apache.org/jira/browse/KARAF-4654
>             Project: Karaf
>          Issue Type: Question
>          Components: karaf-shell
>    Affects Versions: 4.0.4
>            Reporter: ShawnE
>
> The Karaf 4 documentation mentions [the ability to script|https://karaf.apache.org/manual/latest/#_leveraging_existing_java_capabilities_via_reflection]:
> {quote}
>     It's possible to create objects to create commands "on the fly":
>     karaf@root()> addcommand system (($.context bundle) loadClass java.lang.System)
> {quote}
> However this does not work, and displays the following error message:
> {quote}
>     Command not found: addcommand
> {quote}
> Is the documentation outdated, and if so what's the new way to achieve the same result?
> Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)