ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Goubard <anth...@tryllian.com>
Subject Re: tar task: how to include empty dirs
Date Thu, 07 Dec 2000 11:43:52 GMT


Stefan Bodewig wrote:
> 
> Wim Bervoets <wim.bervoets@iconmedialab.com> wrote:
> 
> > The Tar task doesn't seem to tar empty directories. How can I tell
> > it to do that?
> 
> You are right, it doesn't. If you look into the generated tar files
> you'll notice that it doesn't store any directories at all. Two
> options: (1) modify Tar.java to store directories as well, (2) use
> <exec> or <execon> and command line tar.
> 
> If you chose option (1), a patch to ant-dev would be much
> appreciated 8-)
> 
> Cheers
> 
>         Stefan
Hi,

If you patch the tar file, can you do the same thing for the zip.java
that also doesn't include empty directories.

Anthony

Mime
View raw message