karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject karaf git commit: [KARAF-3736]Installing bundles takes too long when adding a feature repository and installing the feature
Date Wed, 27 May 2015 07:25:36 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-3.0.x e25a498c0 -> 64fbc5085


[KARAF-3736]Installing bundles takes too long when adding a feature repository and installing
the feature


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/64fbc508
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/64fbc508
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/64fbc508

Branch: refs/heads/karaf-3.0.x
Commit: 64fbc50856afdd2c3d125fa3b9ea3835c2aac9b9
Parents: e25a498
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Wed May 27 15:25:24 2015 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Wed May 27 15:25:24 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/karaf/features/internal/BundleManager.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/64fbc508/features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
----------------------------------------------------------------------
diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
b/features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
index 086b3e2..0198de7 100644
--- a/features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
+++ b/features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
@@ -221,7 +221,9 @@ public class BundleManager {
             int protocolIndex = bundleLocation.indexOf(":");
             if (protocolIndex != -1) {
                 String protocol = bundleLocation.substring(0, protocolIndex);
-                waitForUrlHandler(protocol);
+                if (!protocol.endsWith("file") && !protocol.endsWith("http")) {
+                    waitForUrlHandler(protocol);
+                }
             }
             URL bundleUrl = new URL(bundleLocation);
             is = new BufferedInputStream(bundleUrl.openStream());


Mime
View raw message