Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26CA7C783 for ; Fri, 4 May 2012 07:35:50 +0000 (UTC) Received: (qmail 68726 invoked by uid 500); 4 May 2012 07:35:49 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 68677 invoked by uid 500); 4 May 2012 07:35:49 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 68642 invoked by uid 99); 4 May 2012 07:35:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 07:35:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of karlpauls@gmail.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-ob0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 07:35:43 +0000 Received: by obqv19 with SMTP id v19so5388721obq.22 for ; Fri, 04 May 2012 00:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=6HLQEsCI0okpFxY47sHdmuxQSQvvmwgw0pvLMcX371E=; b=f4BVD26vA6FehHqPMHuep2fb0iOWgwlwyZSINHHr/wgpCgd6tVh4UnWsaX9RWRJEbi 66Df7fY1tX/NJ4cIaBsWjCY9HRJynKo/iFfh/z4SSFaFlLehp/FLWlLPrvRMgA2UbIir fpeBJ6Kh2ZYWg0UczQu0ftlcku6NuDrdMbm+WKIWpf29rjwhgc8gyShQygdcJmp9BD8q SeWNxSTJ8Mzgww7iCeo4PE3AJk25RTuSGrZ9TwZNqHMvomL49fzPuSj+aiCt2IWopaxk 33uKzde6IpTiQp7Lax2LV1/r0exEsmtDj2/AaCYOHLIGoISQxVVxCikw8NplitZrIcRY 59Ag== Received: by 10.182.164.69 with SMTP id yo5mr7074134obb.17.1336116923206; Fri, 04 May 2012 00:35:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.17.225 with HTTP; Fri, 4 May 2012 00:35:02 -0700 (PDT) In-Reply-To: References: <055D1DA1-B2C8-419C-B078-5F6A08F0B6A3@luminis.nl> From: Karl Pauls Date: Fri, 4 May 2012 09:35:02 +0200 Message-ID: Subject: Re: OSGi bundles and Pack200 format with Bundle-Classpath To: users@felix.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You could create your own urlhandlerservice that would (if you install bundles with it given prefix) do the manipulation when a bundle is installed... regards, Karl On Fri, May 4, 2012 at 9:01 AM, Christopher BROWN wrote: > I'm assuming (perhaps wrongly) that classes loaded via Bundle-Classpath > have a classloader that enables things like classloader.getResource() tha= t > looks inside the "bundled" JAR and not in the "host" JAR (so different fr= om > a fragment bundle), so that I don't need to merge and avoid conflicts > between my "host" bundle's MANIFEST.MF and other resources and those of t= he > embedded JAR. > > I could merge the JARs, but then again I don't know if it's always allowe= d > from a licensing viewpoint (it would be a derivative works, as opposed to > simply embedding and compressing... but I am not a lawyer). =A0And it > simplifies the build process if I just have to pack a file, especially if= I > upgrade the embedded JARs (no delta of extracted files to clean up). > > Is this possible, desirable, and compatible with OSGi standards (even if > optional, or for say a future version)? =A0It would seem (very) nice to h= ave > in resource-constrained environments (we're often seeing up to 80% > additional compression compared with the normal JAR/ZIP maximum compressi= on > for JARs containing class files and no static resources). > > Thanks, > Christopher > > > > On 4 May 2012 01:01, Marcel Offermans wrote= : > >> On May 4, 2012, at 0:11 , Christopher BROWN wrote: >> >> > However, I don't think there's any way of doing this for embedded JARs= in >> > the Bundle-Classpath, which is a shame as the software contains bundle= s >> > that encapsulate dependencies that we don't want customers to rely on = if >> we >> > decide to change implementation details for future upgrades... and it'= s >> > typically these dependencies that bloat up file sizes. >> >> And you can't inline the classes in those embedded jars, because =85 ? >> >> Greetings, Marcel >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> >> --=20 Karl Pauls karlpauls@gmail.com http://twitter.com/karlpauls http://www.linkedin.com/in/karlpauls https://profiles.google.com/karlpauls --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org