You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kelly Davis <kd...@pobox.com> on 2004/10/13 20:14:41 UTC

Zip task doesn't create empty directories on Mac OSX

For some reason the zip task is not consisten between platforms. When I 
zip up a directory with some empty directories under it, in Linux, the 
empty directories get included in the zip. When I run the same task on 
OSX, the empty directories are not created.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Zip task doesn't create empty directories on Mac OSX

Posted by Kelly Davis <kd...@pobox.com>.
Antoine

Yeah, your right. I am using 1.6.2 on the mac and 1.6.1 on linux. I 
should have included the versions in the post. thanks for the info.

Kelly

Antoine Levy-Lambert wrote:

>Hello,
>
>In ant 1.6.2, there is a bug [1] preventing empty directories from being
>zipped.
>
>This bug is fixed in CVS on the ANT_16_BRANCH and on the main branch.
>Which means that you can use ant 1.6.1 or patch your ant 1.6.2 using the
>diffs [2]
>
>I would bet that you are using a different (maybe older) version of ant
>under linux, and that you are using ant 1.6.2 under OSX.
>
>Cheers,
>Antoine
>
>[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=30365
>
>[2]
>http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/Zip.java?r1=1.127&r2=1.128
>
>  
>
>>For some reason the zip task is not consisten between platforms. When I 
>>zip up a directory with some empty directories under it, in Linux, the 
>>empty directories get included in the zip. When I run the same task on 
>>OSX, the empty directories are not created.
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Zip task doesn't create empty directories on Mac OSX

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello,

In ant 1.6.2, there is a bug [1] preventing empty directories from being
zipped.

This bug is fixed in CVS on the ANT_16_BRANCH and on the main branch.
Which means that you can use ant 1.6.1 or patch your ant 1.6.2 using the
diffs [2]

I would bet that you are using a different (maybe older) version of ant
under linux, and that you are using ant 1.6.2 under OSX.

Cheers,
Antoine

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=30365

[2]
http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/Zip.java?r1=1.127&r2=1.128

> For some reason the zip task is not consisten between platforms. When I 
> zip up a directory with some empty directories under it, in Linux, the 
> empty directories get included in the zip. When I run the same task on 
> OSX, the empty directories are not created.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org