Return-Path: X-Original-To: apmail-karaf-commits-archive@minotaur.apache.org Delivered-To: apmail-karaf-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C86017CFA for ; Wed, 27 May 2015 07:25:52 +0000 (UTC) Received: (qmail 17360 invoked by uid 500); 27 May 2015 07:25:36 -0000 Delivered-To: apmail-karaf-commits-archive@karaf.apache.org Received: (qmail 17333 invoked by uid 500); 27 May 2015 07:25:36 -0000 Mailing-List: contact commits-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 commits@karaf.apache.org Received: (qmail 17324 invoked by uid 99); 27 May 2015 07:25:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2015 07:25:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4795DDFF79; Wed, 27 May 2015 07:25:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ffang@apache.org To: commits@karaf.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Wed May 27 15:25:24 2015 +0800 Committer: Freeman Fang 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());