ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Martin <>
Subject Re: Zip and empty directory
Date Thu, 31 Mar 2005 06:38:03 GMT
"Bridges, Ed           NYC" <> writes:

> Without it actually being a directory, how would the zipfile know if
> "inside/emptydir" is either a directory or a file? 

 According to what I have understood from documentation, and the result of
 trials, the prefix is used as a prefix directory for included entries by the

 Without 'excludes', if 'existingdir' contains A, B and C files; then the
 result of the file set is (in the zip):

 My problem is: as the file set is empty, the prefix is not stored at all in
 the zip as a directory entry.

> -----Original Message-----
> From: Yves Martin [] 
> Sent: Wednesday, March 30, 2005 2:51 AM
> To:
> Subject: Zip and empty directory
>    Hello,
>  What is the best way to create a zip containing an empty directory without
> having to create an empty directory on disk.
>  I tried the following way:
>  <zipfileset dir="existingdir" excludes="**" prefix="inside/emptydir"/>
>  But as the fileset is empty, no directory entry for 'inside/emptydir' is
> added  in the zip.
>  Have you got a solution ?

Yves Martin

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message