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 6B7249EF9 for ; Tue, 27 Sep 2011 11:50:42 +0000 (UTC) Received: (qmail 20473 invoked by uid 500); 27 Sep 2011 11:50:42 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 20451 invoked by uid 500); 27 Sep 2011 11:50:42 -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 20434 invoked by uid 99); 27 Sep 2011 11:50:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 11:50:42 +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; Tue, 27 Sep 2011 11:50:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8C5FC45F7C for ; Tue, 27 Sep 2011 11:50:18 +0000 (UTC) Date: Tue, 27 Sep 2011 11:50:18 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28Work_started=29_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: <1900314470.2622.1317124218576.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1526303678.49970.1316596448933.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Work started] (KARAF-885) StartBundle doesn't deploy all bundles if one failed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KARAF-885?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Work on KARAF-885 started by Jean-Baptiste Onofr=C3=A9. > StartBundle doesn't deploy all bundles if one failed > ---------------------------------------------------- > > Key: KARAF-885 > URL: https://issues.apache.org/jira/browse/KARAF-885 > Project: Karaf > Issue Type: Improvement > Components: karaf-shell > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 2.2.4, 3.0.0 > > > The shell StartBundle commands doesn't start all bundles if one failed: > protected void doExecute(List bundles) throws Exception { > for (Bundle bundle : bundles) { > bundle.start(); > } > } > The correct approach is to add a try/catch block around bundle.start() to= display a warn message in the console, but keep one starting the next bund= les in the list. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira