>>>>> Steinar Bang <[email protected]>:
[snip!]
> But as far as I can tell from the HTTP server access log, nothing is
> polling maven.bang.priv.no.

As far as I can tell from the source code of karaf 4.1.2[1][2],
bundle:watch only works for files in the local repository.

The bundle:update command also looks like it only works for a local
file, unless the --raw flag is used[3] (But the "--raw" flag
description looks unrelated to local vs. possibly remote, and there is
no guarantee that it works for remote locations.  It's just that I can't
be positive that it doesn't work).

I know that the bundle:install command works for a remote repository,
because I've installed my application from a remote repository (that is:
I've installed the application using feature:install, so I'm just
assuming that installing of bundles from remote repositories work), but
I can't tell how it works, because it disappears into
BundleContext.install() to do the installation[4].

But the conclusion is that I'm pretty sure neither bundle:watch nor
bundle:update works for watching a remote repository, or update a bundle
installed from a remote repository.


References:
[1] 
<https://github.com/apache/karaf/blob/karaf-4.1.x/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleWatcherImpl.java#L156>
[2] 
<https://github.com/apache/karaf/blob/karaf-4.1.x/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleWatcherImpl.java#L216>
[3] 
<https://github.com/apache/karaf/blob/karaf-4.1.x/bundle/core/src/main/java/org/apache/karaf/bundle/command/Update.java#L67>
[4] 
<https://github.com/apache/karaf/blob/karaf-4.1.x/bundle/core/src/main/java/org/apache/karaf/bundle/command/Install.java#L84>

Reply via email to