Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5484B7F0F for ; Thu, 25 Aug 2011 08:56:57 +0000 (UTC) Received: (qmail 2900 invoked by uid 500); 25 Aug 2011 08:56:57 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 2851 invoked by uid 500); 25 Aug 2011 08:56:53 -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 2821 invoked by uid 99); 25 Aug 2011 08:56:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 08:56:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 08:56:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1F6DACECFE for ; Thu, 25 Aug 2011 08:56:29 +0000 (UTC) Date: Thu, 25 Aug 2011 08:56:29 +0000 (UTC) From: "Andreas Pieber (JIRA)" To: issues@karaf.apache.org Message-ID: <62119827.12840.1314262589125.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1950573299.934.1314016409196.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (KARAF-820) Karaf client.bat swallows commands to be passed to the Karaf instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-820?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Pieber reassigned KARAF-820: ------------------------------------ Assignee: Andreas Pieber > Karaf client.bat swallows commands to be passed to the Karaf instance > --------------------------------------------------------------------- > > Key: KARAF-820 > URL: https://issues.apache.org/jira/browse/KARAF-820 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Affects Versions: 2.2.2 > Environment: Karaf running on Windows > Reporter: J=C3=BCrgen Kindler > Assignee: Andreas Pieber > > The Karaf client.bat will not send any commands to a Karaf instance when = using all options. > .\bin\client.bat -a 8101 -h localhost -u karaf -p karaf osgi:list > Simply opens a console, but does not list the bundles. > The reason can be found near the bottom of the script: > :EXECUTE > if "%SHIFT%" =3D=3D "true" SET ARGS=3D%2 %3 %4 %5 %6 %7 %8 > if not "%SHIFT%" =3D=3D "true" SET ARGS=3D%1 %2 %3 %4 %5 %6 %7 %8 =20 > Obviously the command "osgi:list" in ".\bin\client.bat -a 8101 -h localho= st -u karaf -p karaf osgi:list" is argument no. 9 (!) > I have no idea what the %SHIFT% variable is needed for, but if not needed= I would remove the code above and change it to: > :EXECUTE > SET ARGS=3D%* > With that, it is possible to get a bundle list (and other Karaf console c= ommands that require additional arguments).=20 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira