org.apache.tools.ant.types
public class FileList extends DataType implements ResourceCollection
Nested Class Summary | |
---|---|
static class | FileList.FileName
Inner class corresponding to the <file> nested element. |
Constructor Summary | |
---|---|
FileList()
The default constructor.
| |
protected | FileList(FileList filelist)
A copy constructor.
|
Method Summary | |
---|---|
void | addConfiguredFile(FileList.FileName name)
Add a nested <file> nested element.
|
File | getDir(Project p) |
String[] | getFiles(Project p)
Returns the list of files represented by this FileList. |
protected FileList | getRef(Project p)
Performs the check for circular references and returns the
referenced FileList. |
boolean | isFilesystemOnly()
Always returns true. |
Iterator | iterator()
Fulfill the ResourceCollection contract. |
void | setDir(File dir)
Set the dir attribute.
|
void | setFiles(String filenames)
Set the filenames attribute.
|
void | setRefid(Reference r)
Makes this instance in effect a reference to another FileList
instance.
|
int | size()
Fulfill the ResourceCollection contract. |
Parameters: filelist a FileList
value
Parameters: name a configured file element with a name.
Since: Ant 1.6.2
Parameters: p the current project
Returns: the directory attribute
Parameters: p the current project
Returns: the list of files represented by this FileList.
Parameters: p the current project
Returns: the FileList represented by a referenced filelist.
Returns: true indicating that all elements will be FileResources.
Since: Ant 1.7
Returns: an Iterator of Resources.
Since: Ant 1.7
Parameters: dir the directory this filelist is relative to.
Throws: BuildException if an error occurs
Parameters: filenames a string contains filenames, separated by , or by whitespace.
You must not set another attribute or nest elements inside this element if you make it a reference.
Parameters: r the reference to another filelist.
Throws: BuildException if an error occurs.
Returns: number of elements as int.
Since: Ant 1.7