Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 36292 invoked from network); 31 Oct 2006 15:17:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 15:17:12 -0000 Received: (qmail 83787 invoked by uid 500); 31 Oct 2006 15:17:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83759 invoked by uid 500); 31 Oct 2006 15:17:16 -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 83748 invoked by uid 99); 31 Oct 2006 15:17:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 07:17:16 -0800 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.58.157] (HELO web55108.mail.re4.yahoo.com) (206.190.58.157) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 31 Oct 2006 07:17:00 -0800 Received: (qmail 10592 invoked by uid 60001); 31 Oct 2006 15:16:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pgXzUNFqAQQINx7hvTABvVT12NNtMriHgTrxVNahrAnNPgTik0SrNtQU7WPrq3KcuT0yBziLiN1UkqNtKEPey4Vkjj4Lp70eQ7Q6YPj+5m6inGKg/ldXdyg4ykC9ouY/MvjcaUdYybfoom+Hu9lZ6DGHQj6fme47Ju5+MDGDFxQ= ; Message-ID: <20061031151639.10590.qmail@web55108.mail.re4.yahoo.com> Received: from [66.10.233.130] by web55108.mail.re4.yahoo.com via HTTP; Tue, 31 Oct 2006 07:16:39 PST Date: Tue, 31 Oct 2006 07:16:39 -0800 (PST) From: Matt Benson Subject: Re: Accessing the manifest within a jar file To: Ant Users List In-Reply-To: <20061031034917.67283.qmail@web52909.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org --- "Ivan \"Rambius\" Ivanov" wrote: > Hello, > > You can also use Ant 1.7 zipentry resource: > > name="META-INF/MANIFEST.MF"/> Thanks for the resource plug, Ivan. :) Alternatively, assuming ${jar} points to the relevant jar file, you could use or ;) Note that the -based solution requires that the ${jar} property be an absolute path (not sure of the rules regarding file: urls and relative paths). Finally, I don't know if it's good or bad that there are three resource-based ways to access a manifest, but it's interesting, anyway. -Matt > > Regards > Ivan > > --- Antoine Levy-Lambert wrote: > > > Hello Michael, > > > > this is an interesting question. > > > > I would write my own custom Ant task . You can use > > java.util.jar.JarFile > > and java.util.jar.Manifest to access whathever > > information you want. > > > > Actually, I am interested by the same sort of > topic, > > for instance to > > collect Vendor/Version/Name information from a set > > of jar files and > > generate a report from this. > > > > Regards, > > > > Antoine > > > > Nau, Michael wrote: > > > Anyone know of an easy way to access the > manifest > > file within a jar > > > file? I realize I can extract the manifest first > > using the task, > > > but I was hoping for a way to directly access > the > > manifest file. > > > > > > I need to check for some specific info within > the > > manifest of several > > > jar files from my ant script. > > > > > > Thanks, > > > -Mike > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > > user-help@ant.apache.org > > > > > > > > > ____________________________________________________________________________________ > Want to start your own business? Learn how on Yahoo! > Small Business > (http://smallbusiness.yahoo.com) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________________________________________________________________ Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. (http://advision.webevents.yahoo.com/mailbeta) --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org