Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 06B64200BDB for ; Mon, 12 Dec 2016 18:10:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 055FD160B22; Mon, 12 Dec 2016 17:10:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4F46D160B1A for ; Mon, 12 Dec 2016 18:10:36 +0100 (CET) Received: (qmail 86579 invoked by uid 500); 12 Dec 2016 17:10:35 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 86561 invoked by uid 99); 12 Dec 2016 17:10:35 -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; Mon, 12 Dec 2016 17:10:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 28E9CE9411; Mon, 12 Dec 2016 17:10:35 +0000 (UTC) From: ahgittin To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-docs pull request #132: Using Bundle-SymbolicName in Catalog Content-Type: text/plain Message-Id: <20161212171035.28E9CE9411@git1-us-west.apache.org> Date: Mon, 12 Dec 2016 17:10:35 +0000 (UTC) archived-at: Mon, 12 Dec 2016 17:10:37 -0000 Github user ahgittin commented on a diff in the pull request: https://github.com/apache/brooklyn-docs/pull/132#discussion_r91992440 --- Diff: guide/ops/catalog/index.md --- @@ -161,6 +167,30 @@ The following optional catalog metadata is supported: whenever a bundle is reloaded in a Brooklyn server, and if entities have been deployed against that version, their behavior may change in subtle or potentially incompatible ways. To avoid this situation, it is highly recommended to use OSGi version stamps as part of the URL. +- To refer a resource from a JAR file added by brooklyn.libraries + you should include OSGi Bundle-SymbolicName in the classpath. + Example: + +~~~ yaml +brooklyn.catalog: + brooklyn.libraries: + - url: http://some.server.or.other/path/my.jar + name: myJar-BundleSymbolicName + version: 1.0 + items: + - classpath://myJar-BundleSymbolicName:my-catalog-entries-inside-jar.bom + - id: use-from-my-catalog + version: "1.0.0" + itemType: entity + iconUrl: classpath://myJar-BundleSymbolicName:org/apache/brooklyn/MyEntity/icon.png + item: + type: myJar-BundleSymbolicName:org.apache.brooklyn.MyEntity + brooklyn.config: + some.config: "some value" + templates.install: + classpath://myJar-BundleSymbolicName:org/apache/brooklyn/MyEntity/config.xml: config.xml --- End diff -- i've just put together a wee test in https://github.com/apache/brooklyn-server/pull/485 ... classpath resolution seems good for the most part so tidy this line, and lines 181 and 185 (though we may need a fix to make 185 work, using the right `ResourceUtils` to load the `iconUrl`) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---