public class FileSet extends AbstractBundleType
| Constructor and Description |
|---|
FileSet()
Construct a new
IncludesFileSet. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tools.ant.types.PatternSet.NameEntry |
createInclude()
Add a name entry to the include list.
|
protected String |
getDataTypeName()
Gets as descriptive as possible a name used for this datatype instance.
|
File |
getDir()
Retrieves the base-directory for this instance.
|
String[] |
getIncludePatterns() |
protected FileSet |
getRef(org.apache.tools.ant.Project p)
Performs the check for circular references and returns the
referenced FileSet.
|
void |
setDir(String dir)
Sets the base-directory for this instance.
|
void |
setFile(String file)
Creates a single file fileset.
|
void |
setIncludes(String includes)
Appends
includes to the current list of include
patterns. |
void |
setRefid(org.apache.tools.ant.types.Reference r)
Makes this instance in effect a reference to another instance.
|
String |
toString()
Returns the list of unresolved include patterns.
|
buildIncludePatternRegex, getPattern, getProjectcheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributespublic void setRefid(org.apache.tools.ant.types.Reference r)
throws org.apache.tools.ant.BuildException
You must not set another attribute or nest elements inside this element if you make it a reference.
setRefid in class org.apache.tools.ant.types.DataTyper - the Reference to use.org.apache.tools.ant.BuildExceptionpublic void setDir(String dir) throws org.apache.tools.ant.BuildException
dir - the directory's File instance.org.apache.tools.ant.BuildExceptionpublic File getDir()
public org.apache.tools.ant.types.PatternSet.NameEntry createInclude()
PatternSet.NameEntry.public void setFile(String file)
file - the single File included in this
AbstractFileSet.public void setIncludes(String includes)
includes to the current list of include
patterns.
Patterns may be separated by a comma or a space.
includes - the String containing the include patterns.public String[] getIncludePatterns()
protected String getDataTypeName()
getDataTypeName in class org.apache.tools.ant.types.DataTypeString name.protected FileSet getRef(org.apache.tools.ant.Project p)
public String toString()
toString in class org.apache.tools.ant.types.DataTypeCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.