Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 64936 invoked from network); 1 Nov 2006 11:53:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 11:53:04 -0000 Received: (qmail 35064 invoked by uid 500); 1 Nov 2006 11:53:11 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34785 invoked by uid 500); 1 Nov 2006 11:53:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 34774 invoked by uid 99); 1 Nov 2006 11:53:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 03:53:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 03:52:55 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id DDA4A4C093 for ; Wed, 1 Nov 2006 11:52:33 +0000 (GMT) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8ubQTsXcstdr for ; Wed, 1 Nov 2006 11:52:33 +0000 (GMT) Received: from ha-node-br2.hpl.hp.com (ha-node-br2.hpl.hp.com [16.25.144.57]) by tobor.hpl.hp.com (Postfix) with ESMTP id 0D3084C087 for ; Wed, 1 Nov 2006 11:52:32 +0000 (GMT) Received: from [16.25.171.182] (chamonix.hpl.hp.com [16.25.171.182]) by ha-node-br2.hpl.hp.com (8.13.4/8.13.4) with ESMTP id kA1Bp5RC005015 for ; Wed, 1 Nov 2006 11:51:05 GMT Message-ID: <454889E2.6040603@apache.org> Date: Wed, 01 Nov 2006 11:49:54 +0000 From: Steve Loughran User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Ant Users List Subject: Re: Build jar files that contain other jar files References: <2C89AC11F6D7F9469B7E4A71D8309FFD74E1B0@nemesis.axiom.com> In-Reply-To: <2C89AC11F6D7F9469B7E4A71D8309FFD74E1B0@nemesis.axiom.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org Keith Hatton wrote: > You can include other jars in the Class-Path entry of the manifest file > of your jar, then just distribute all jars in the same folder (assuming > you're allowed to distribute them). > the advantage of this route is: 1. you dont secretly include other jars in your app. I have a special hand-made version of jython.jar that strips out the apache regexp libraries for that reason. 2. you can depend on signed jars and the signature is not affected. Against, that you are very brittle against the JARs being exactly where you expected them, and named exactly what you want. Java app dependency logic sucks. I have just been discussing OSGi with someone as an alternative (see apache felix), but even that has limitations. Ant1.7 probably lets you import JARs into JARs by way of resources, even though I normally dont approve. If you are doing something in-house or java-web-start, go for it, but for things that are widely redistributed, its just a source of support calls. -steve --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org