From conor@m64.com Thu Feb 3 09:39:41 2000 Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 6228 invoked from network); 3 Feb 2000 09:39:41 -0000 Received: from fep9.mail.ozemail.net (203.2.192.103) by 63.211.145.10 with SMTP; 3 Feb 2000 09:39:41 -0000 Received: from cognetnt (1Cust176.tnt1.syd2.da.uu.net [63.12.0.176]) by fep9.mail.ozemail.net (8.9.0/8.6.12) with SMTP id UAA08255 for ; Thu, 3 Feb 2000 20:39:36 +1100 (EST) From: "Conor MacNeill" To: Subject: RE: Question on zip vs. jar format Date: Thu, 3 Feb 2000 20:38:53 +1100 Message-ID: <001f01bf6e2a$7c00eb20$80dc1fcb@cognetnt.cognet.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 In-Reply-To: Importance: Normal Arnout, I don't know why :-). I think the Jar and Zip tasks were developed by different people and perhaps they are just different idioms. I subsequently refactored it so that most of the Zip code was reused by the Jar task (also making some nice behaviour available for the Jar task). During that refactoring I noticed that these tasks were different in this area so I preserved this behaviour. You could eliminate it by simply removing the zipDir method in Jar.java Before you do that I guess we should understand whether jars do require those directory entries. -- Conor MacNeill conor@m64.com M64 Pty Limited > -----Original Message----- > From: Kuiper, Arnout [mailto:Arnout.Kuiper@nl.origin-it.com] > Sent: Thursday, 3 February 2000 17:33 > To: 'ant-dev@jakarta.apache.org' > Subject: Question on zip vs. jar format > > > While browsing through the code, I noticed that in the jar task > besides the files, all encountered directories are stored. > This is not done in the zip task. > > According to the jarfile format spec, "a jar file is a zipfile with > a manifest". > > Can somebody tell me why directories are stored in a jar (and not in > a zip)? And whether they can safely be removed or not from a jar. > > Cheers, > > Arnout Kuiper >