Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 652B69DCB for ; Sat, 28 Jan 2012 12:04:45 +0000 (UTC) Received: (qmail 12870 invoked by uid 500); 28 Jan 2012 12:04:45 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 12712 invoked by uid 500); 28 Jan 2012 12:04:43 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 12692 invoked by uid 99); 28 Jan 2012 12:04:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jan 2012 12:04:42 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_HELO_PASS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of nicolas.lalevee@hibnet.org does not designate 216.86.168.183 as permitted sender) Received: from [216.86.168.183] (HELO mxout-08.mxes.net) (216.86.168.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jan 2012 12:04:35 +0000 Received: from [192.168.1.21] (unknown [86.68.205.12]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 63FD950A5D for ; Sat, 28 Jan 2012 07:04:14 -0500 (EST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: ivy (2.3) and osgi From: =?iso-8859-1?Q?Nicolas_Lalev=E9e?= In-Reply-To: <3DDD5D9F240C2C4EB6641445773FD1380337DFC4@us-hqmail5.ariba.com> Date: Sat, 28 Jan 2012 13:04:10 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <642FC742-A428-4121-9E38-22A81509461B@hibnet.org> References: <3DDD5D9F240C2C4EB6641445773FD1380337DFC4@us-hqmail5.ariba.com> To: ivy-user@ant.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Le 27 janv. 2012 =E0 19:13, Richard Mauri a =E9crit : > Greetings, we are investigating alternatives to building osgi bundles > (and resolving/retrieving bundles for ease of copying to > virgo-tomcat/repository/usr) in an "ivy-first" approach. >=20 >=20 >=20 > I found the following docs which encourage me and I'd love to get > started with this and help if need be. >=20 >=20 >=20 > According to http://ant.apache.org/ivy/history/trunk/osgi.html >=20 > So with a standard ivy.xml, you can express some dependency on some = OSGi > bundle and every of their trasitive dependencies will be resolved. You > can also declare in your ivy.xml some OSGi dependency, like a > Require-Bundle, an Import-Package or an Import-Service, miming an OSGi > MANIFEST.MF. >=20 >=20 >=20 > According to > http://ant.apache.org/ivy/history/trunk/osgi/standard-osgi.html >=20 > In oder to produce OSGi metadata of suffient quality and to avoid > maintaining them manually, the bnd = tool > will be used. The approach taken is then an "Ivy file first" approach. > The dependencies will be specified in the ivy.xml file, the = MANIFEST.MF > being generated from the computed classpath. >=20 >=20 >=20 > Then, on the other hand I see this support for manifest-first docs: >=20 > According to > http://ant.apache.org/ivy/history/trunk/osgi/osgi-mapping.html >=20 > there is early experimental work to map osgi manifest first to = generated > ivy.xml >=20 >=20 >=20 > Also http://ant.apache.org/ivy/history/trunk/use/convertmanifest.html >=20 > since 2.3 Convert a MANIFEST.MF into an ivy.ml file >=20 >=20 >=20 > Sigh.. no mention of any sort of genbnd or genmanifest ant tasks The bnd should be wrote by yourself. If you don't have a too much = complicated classpath, it will be probably mostly empty. Actually the = one in the example is empty on purpose. Then the task about generating the MANIFEST.MF is the bnd one, see the = target "generate-manifest" in the build.xml of the example. You can download the bnd task there: http://www.aqute.biz/Code/Bnd Nicolas