Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E151D200B77 for ; Fri, 19 Aug 2016 20:41:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DFF27160A79; Fri, 19 Aug 2016 18:41:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3642E160ABD for ; Fri, 19 Aug 2016 20:41:22 +0200 (CEST) Received: (qmail 1535 invoked by uid 500); 19 Aug 2016 18:41:21 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 1224 invoked by uid 99); 19 Aug 2016 18:41:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2016 18:41:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3E06B2C0150 for ; Fri, 19 Aug 2016 18:41:21 +0000 (UTC) Date: Fri, 19 Aug 2016 18:41:21 +0000 (UTC) From: "ShawnE (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4654) Karaf shell command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 19 Aug 2016 18:41:23 -0000 [ https://issues.apache.org/jira/browse/KARAF-4654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ShawnE updated KARAF-4654: -------------------------- Description: 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. was: 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. > 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)