karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4654) Karaf shell command
Date Tue, 23 Aug 2016 16:04:21 GMT

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

ASF subversion and git services commented on KARAF-4654:
--------------------------------------------------------

Commit 7566d83503d42843bf28189d75733afebcb5dacf in karaf's branch refs/heads/master from [~gnt]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=7566d83 ]

KARAF-4654 - Add missing addcommand/removecommand/eval commands

> 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)

Mime
View raw message