ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Slager <>
Subject Re: [SUBMIT] Cat Task
Date Tue, 02 Apr 2002 08:21:49 GMT
On Thu, Mar 07, 2002 at 06:03:01PM +0100, Stefan Bodewig wrote:
> some comments:
> (1) any problems with calling the task concat instead of cat?
> Non-Unix people will probably not recognize "cat".

It's not a problem for me -- changed.

> (2) Instead of tofile, I'd prefer destfile as an attribute name.

Not a problem -- changed. I did wonder about this one when initially putting
the task together -- the task design guidelines suggested 'destdir' as a
preferred name but made no mention of 'destfile'. I ended up choosing
'tofile', to be consistent with the Copy task.

> (3) You may consider using nested FileLists instead of/in addition to
> FileSets - the order by which DirctoryScanner returns the files is not
> determined while people using cat will probably need a specific order.

Yes, good idea. I didn't know what FileLists were until you mentioned them
(the documentation is a bit buried), but it seems quite reasonable to
include support for them. I believe that it's important to keep the FileSet
option as well, so they're both in there for now.

> (4) I'm not sure, but maybe an encoding attribute is needed.  We have
> gradually added encoding attributes to almost all tasks that read and
> modify files.

Yes, though it would only be used when dumping text to the console (the task
treats all file inputs as binary if the destination is a file). Of course,
we'd have to assume that all of the files being concatenated together have
the same encoding -- but I doubt that will ever become a serious issue. I've
added the support in any case.

Thank you for your comments. I apologize for the tardiness of my response --
things have been quite busy for me lately. The updated files are attached to
this message, contained within a GNU gzipped tarball.


Thanks again,

Derek Slager
Software Engineer

View raw message