Peter Donald wrote:

Hi,

I just had a discussion with someone about FileSet behaviour. Is there a reason that FileSet does not allow specification of a single file. Something like;

<fileset file="foo.txt" />

Currently you have to specify a directory of "." then include "foo.txt". However this is not really possible when the file you are using is userdefined. Mainly as you don't know what directory it is located in and thus can't get at it as ant doesn't have a dirname task.

Would there be any objections to me adding such functionality?



A filelist type was added just prior to the 1.4 release and would seem to be more appropriate. Whether the two could be unified, I haven't look into yet.

Conor




Reply via email to