ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: tar task: how to include empty dirs
Date Thu, 07 Dec 2000 11:34:24 GMT
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

Mime
View raw message