|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.MatchingTask
This is an abstract task that should be used by all those tasks that require to include or exclude files based on pattern matching.
Field Summary | |
protected FileSet |
fileset
|
protected boolean |
useDefaultExcludes
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
Constructor Summary | |
MatchingTask()
|
Method Summary | |
PatternSet.NameEntry |
createExclude()
add a name entry on the exclude list |
PatternSet.NameEntry |
createInclude()
add a name entry on the include list |
PatternSet |
createPatternSet()
add a set of patterns |
protected DirectoryScanner |
getDirectoryScanner(java.io.File baseDir)
Returns the directory scanner needed to access the files to process. |
void |
setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not. |
void |
setExcludes(java.lang.String excludes)
Sets the set of exclude patterns. |
void |
setExcludesfile(java.io.File excludesfile)
Sets the name of the file containing the includes patterns. |
void |
setIncludes(java.lang.String includes)
Sets the set of include patterns. |
void |
setIncludesfile(java.io.File includesfile)
Sets the name of the file containing the includes patterns. |
void |
XsetIgnore(java.lang.String ignoreString)
List of filenames and directory names to not include. |
void |
XsetItems(java.lang.String itemString)
Set this to be the items in the base directory that you want to be included. |
Methods inherited from class org.apache.tools.ant.Task |
execute, getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean useDefaultExcludes
protected FileSet fileset
Constructor Detail |
public MatchingTask()
Method Detail |
public PatternSet.NameEntry createInclude()
public PatternSet.NameEntry createExclude()
public PatternSet createPatternSet()
public void setIncludes(java.lang.String includes)
includes
- the string containing the include patternspublic void XsetItems(java.lang.String itemString)
itemString
- the string containing the files to include.public void setExcludes(java.lang.String excludes)
excludes
- the string containing the exclude patternspublic void XsetIgnore(java.lang.String ignoreString)
ignoreString
- the string containing the files to ignore.public void setDefaultexcludes(boolean useDefaultExcludes)
useDefaultExcludes
- "true"|"on"|"yes" when default exclusions
should be used, "false"|"off"|"no" when they
shouldn't be used.protected DirectoryScanner getDirectoryScanner(java.io.File baseDir)
public void setIncludesfile(java.io.File includesfile)
includesfile
- A string containing the filename to fetch
the include patterns from.public void setExcludesfile(java.io.File excludesfile)
excludesfile
- A string containing the filename to fetch
the include patterns from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |