Karaf
  1. Karaf
  2. KARAF-1179

"dev:watch *" doesn't notice new bundles added to the container

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None
    • Environment:

      Talend Service Factory 2.5.0.0 (Karaf 2.2.4)

      Description

      If I issue "dev:watch " and then later add a bundle to Karaf (e.g. by installing a feature) that is a mvn:-SNAPSHOT bundle, then org.apache.karaf.shell.dev.watch.BundleWatcher doesn't notice that bundle.

      I see that BundleWatcher implements BundleListener, but I can't see anywhere that it's registered as a listener. It seems to me that it should call BundleContect.addBundleListener(this) in BundleWatcher.start() and remove it in stop()

        Activity

        Hide
        Chris Dolan added a comment -

        Oops, Jira took my "*" characters and interpreted them as bold...

        Show
        Chris Dolan added a comment - Oops, Jira took my "*" characters and interpreted them as bold...
        Hide
        Guillaume Nodet added a comment -

        You're right. Do you plan to provide a patch for that ?

        Show
        Guillaume Nodet added a comment - You're right. Do you plan to provide a patch for that ?
        Hide
        Jean-Baptiste Onofré added a comment -

        Good point Chris.

        AFAIR, I tested it recently (but I'm sure on which Karaf version).

        I gonna make a try and fix it.

        Show
        Jean-Baptiste Onofré added a comment - Good point Chris. AFAIR, I tested it recently (but I'm sure on which Karaf version). I gonna make a try and fix it.
        Hide
        Jean-Baptiste Onofré added a comment -

        Fix on karaf-2.2.x: revision 1240074
        Fix on trunk: revision 1240075

        Show
        Jean-Baptiste Onofré added a comment - Fix on karaf-2.2.x: revision 1240074 Fix on trunk: revision 1240075

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Chris Dolan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development