ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27962] - Zip fails when folder is missing
Date Thu, 25 Mar 2004 22:32:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27962

Zip fails when folder is missing





------- Additional Comments From gudnabrsam@yahoo.com  2004-03-25 22:32 -------
Unfortunately this problem is in the directory scanning implementation IIRC... 
so this is an invalid fileset/zipfileset as far as Ant is concerned... A quick 
inspection of the code does not look promising for any quick attribute 
additions to fileset to make it find nothing when its specified parent 
directory does not exist, and indeed, I'm sure we could stir up quite a 
discussion on the developer and user lists as to whether such behaviour could 
even be thought of as valid (I just realized I've begun using British spellings 
of words like "behaviour").

A workaround:  use conditional target execution (or ant-contrib's <if>) to 
create your <zipfileset> as a reference... if the directory does not exist, 
create your zipfileset as a dummy... something like <zipfileset id="myzfs" 
dir="${basedir}" excludes="**/*" /> should work...

-Matt

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


Mime
View raw message