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 74306 invoked from network); 1 Feb 2001 16:29:28 -0000 Received: from unknown (HELO odo.i2.com) (64.26.226.21) by h31.sny.collab.net with SMTP; 1 Feb 2001 16:29:28 -0000 Received: from i2.com ([10.21.69.25]) by odo.i2.com (8.9.0/8.9.0) with ESMTP id KAA03431 for ; Thu, 1 Feb 2001 10:27:58 -0600 (CST) Message-ID: <3A798ECE.DFD1CAC2@i2.com> Date: Thu, 01 Feb 2001 10:29:02 -0600 From: Ken Wood Organization: APD/TradeMatrix/Two I2 Place X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: ant-dev@jakarta.apache.org Subject: Re: [Bug 329] New - Jar file has redundant subdirectories BugRat Report#595 References: <200102010945.BAA08636@nagoya-a.betaversion.org> <3A79649E.5B7278D@i2.com> <3A797FA2.9881B916@netbeans.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N It makes sense if you have a few empty directories. But if you have a large directory tree with many files, and many (i.e 50 to 100) empty directories, explictly listing every directory to force it to be included would be a nightmare. If you check the archives, you'll find there was a time that the zip task did NOT pick up empty directories, and a number of people lobbied for the change in behavior. That change was made, now we all depend on it. If it is removed, it will set us all back a notch or two. Without boring you with details, this issue was sufficiently important to us that we did not even consider adopting ant until the problem was resolved. So obviously, we don't want to see this go away. And, obivously for maintenance reasons, we don't want to have to explictly spell out every empty directory that should be included. What makes more sense to me, if avoiding empty directories is a big issue for others, is to have a property to control this. So just as we can say "compressed=on" or 'compressed=off', we could say "include_empty=on" or 'include_empty=off', with include_empty=on the default. Jesse Glick wrote: > > Ken Wood wrote: > > There are those of us who need these empty directories > > because they are place holders for things to come at > > product install time. So, we need to preserve > > this behavior, especially in zip files, one way or another. > > IMHO: etc. should create directories for files it is adding, and > empty directories only where explicitly mentioned, e.g.: > > > > > > would be the normal case and would give: > > a/x/ > a/x/foo > a/x/bar > > whereas: > > > > > > > > would mean you explicitly wanted the empty dirs and give: > > a/x/ > a/x/foo > a/x/bar > a/y/ > a/z/ > > Does that make sense? Hopefully this would match behavior of > getIncludedFiles() + getIncludedDirectories(). >