You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Joern Engmann <jo...@yahoo.de> on 2000/10/12 12:00:38 UTC

missing find

Hi,

I'am searching for a "find" functionality. This task has to find all files 
in an given dirtree, who matches to a given filter. The filter should be 
able to process parts of filenames and attributes of files. The result 
should be stored in a property. Is there an solution or will you include 
such a task in the next Ant versions?

Joern


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: missing find

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "JE" == Joern Engmann <jo...@yahoo.de> writes:

 JE> The filter should be able to process parts of filenames
 JE> and attributes of files.

What kind of other attributes would that be? You know that Java and
therefore Ant doesn't have any knowledge of file ownerships or
permissions for example.

If you can restrict yourself to (parts of) filenames, Ant 1.2 is going
to have a fileset datatype which can be used in several places -
including an <execon> task that calls an external command with the
files as argument.

This is not exactly storing them into a property but this might be
added at some point as well.

Stefan