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 11270] - FileSet and DirSet break if the directory does not exist
Date Thu, 01 Aug 2002 09:18:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11270>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11270

FileSet and DirSet break if the directory does not exist





------- Additional Comments From j_a_fernandez@yahoo.com  2002-08-01 09:18 -------
Under my proposal, if you want for <*set> to throw an exception, then do not 
pass the emptyOnNotfound="true" attribute. In this case, as it is today you 
will get the expected exception. But if for some reason someone wants to be 
able to specify that some directory is optional (in a copy, a compile, or what 
have you) there is no reason why users should not be able to say so.

Actually, a good name for the attribute would be: 'optionaldir="true"' (the 
default being "false".

For the particular case of <uptodate> I think the problem is that it does not 
accept <filelist>/<dirlist> as possible elements. Take a look at <dependset>

task, for how that is used. I think that would fix your problem.

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


Mime
View raw message