org.apache.tools.ant.types
Class FileList
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.types.DataType
|
+--org.apache.tools.ant.types.FileList
- public class FileList
- extends DataType
FileList represents an explicitly named list of files. FileLists
are useful when you want to capture a list of files regardless of
whether they currently exist. By contrast, FileSet operates as a
filter, only returning the name of a matched file if it currently
exists in the file system.
Method Summary |
java.io.File |
getDir(Project p)
|
java.lang.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. |
void |
setDir(java.io.File dir)
|
void |
setFiles(java.lang.String filenames)
|
void |
setRefid(Reference r)
Makes this instance in effect a reference to another FileList
instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileList
public FileList()
FileList
protected FileList(FileList filelist)
setRefid
public void setRefid(Reference r)
throws BuildException
- Makes this instance in effect a reference to another FileList
instance.
You must not set another attribute or nest elements inside
this element if you make it a reference.
- Overrides:
setRefid
in class DataType
setDir
public void setDir(java.io.File dir)
throws BuildException
getDir
public java.io.File getDir(Project p)
setFiles
public void setFiles(java.lang.String filenames)
getFiles
public java.lang.String[] getFiles(Project p)
- Returns the list of files represented by this FileList.
getRef
protected FileList getRef(Project p)
- Performs the check for circular references and returns the
referenced FileList.
Includes only those classes commonly used by task writers. The Ant 1.4.1 distribution includes complete Javadoc for all classes included in Ant, though in most cases these are not intended as APIs.