ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <Jesse.Gl...@netbeans.com>
Subject Re: [Bug 329] New - Jar file has redundant subdirectories BugRat Report#595
Date Thu, 01 Feb 2001 15:24:18 GMT
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: <zip> etc. should create directories for files it is adding, and
empty directories only where explicitly mentioned, e.g.:

<zip basedir="a">
  <include name="x/"/>
</zip>

would be the normal case and would give:

a/x/
a/x/foo
a/x/bar

whereas:

<zip basedir="a">
  <include name="x/"/>
  <include name="y"/> <!-- no trailing slash! -->
  <include name="z"/>
</zip>

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().

-Jesse

-- 
Jesse Glick   <mailto:Jesse.Glick@netbeans.com>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

Mime
View raw message