|
|||||||||
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.
Inner Class Summary | |
class |
MatchingTask.NameEntry
inner class to hold a name on list. |
Field Summary | |
protected java.util.Vector |
excludeList
|
protected java.util.Vector |
includeList
|
protected boolean |
useDefaultExcludes
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType |
Constructor Summary | |
MatchingTask()
|
Method Summary | |
MatchingTask.NameEntry |
createExclude()
add a name entry on the exclude list |
MatchingTask.NameEntry |
createInclude()
add a name entry on the include list |
protected DirectoryScanner |
getDirectoryScanner(java.io.File baseDir)
Returns the directory scanner needed to access the files to process. |
protected java.lang.String |
getProperty(java.lang.String name)
provide access to properties from within the inner class |
void |
setDefaultexcludes(java.lang.String 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.lang.String excludesfile)
Sets the name of the file containing the includes patterns. |
void |
setIgnore(java.lang.String ignoreString)
List of filenames and directory names to not include. |
void |
setIncludes(java.lang.String includes)
Sets the set of include patterns. |
void |
setIncludesfile(java.lang.String includesfile)
Sets the name of the file containing the includes patterns. |
void |
setItems(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, getTaskName, init, log, log, setDescription, setLocation, setOwningTarget, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector includeList
protected java.util.Vector excludeList
protected boolean useDefaultExcludes
Constructor Detail |
public MatchingTask()
Method Detail |
protected java.lang.String getProperty(java.lang.String name)
public MatchingTask.NameEntry createInclude()
public MatchingTask.NameEntry createExclude()
public void setIncludes(java.lang.String includes)
includes
- the string containing the include patternspublic void setItems(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 setIgnore(java.lang.String ignoreString)
ignoreString
- the string containing the files to ignore.public void setDefaultexcludes(java.lang.String 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.lang.String includesfile)
includesfile
- A string containing the filename to fetch
the include patterns from.public void setExcludesfile(java.lang.String 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 |