FileLists are explicitly named lists of files. Whereas FileSets act as filters, returning only those files that exist in the file system and match specified patterns, FileLists are useful for specifying files that may or may not exist. Multiple files are specified as a list of files, relative to the specified directory, with no support for wildcard expansion (filenames with wildcards will be included in the list unchanged). FileLists can appear inside tasks that support this feature or at the same level as <target> (i.e., as children of <project>).
Attribute | Description | Required |
dir | The base directory of this FileList. | Yes |
files | The list of file names. | Yes |
Examples
<filelist id="docfiles" dir="${doc.src}" files="foo.xml,bar.xml"/>The files
<filelist id="docfiles" dir="${doc.src}" files="foo.xml bar.xml"/>Same files as the example above.
<filelist refid="docfiles"/>Same files as the example above.