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.
- Version:
- $Revision: 1.9.2.3 $ $Date: 2004/02/09 22:12:40 $
- Author:
- Craeg Strong
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 org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes |
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
BuildException
setDir
public void setDir(java.io.File dir)
throws BuildException
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.
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.