You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Work started JIRA)" <ji...@apache.org> on 2011/09/27 13:50:18 UTC
[jira] [Work started] (KARAF-885) StartBundle doesn't deploy all
bundles if one failed
[ https://issues.apache.org/jira/browse/KARAF-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on KARAF-885 started by Jean-Baptiste Onofré.
> 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é
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.4, 3.0.0
>
>
> The shell StartBundle commands doesn't start all bundles if one failed:
> protected void doExecute(List<Bundle> 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 bundles in the list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira