Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » taskdefs » [javadoc | source]
org.apache.tools.ant.taskdefs
abstract public class: MatchingTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.MatchingTask

All Implemented Interfaces:
    SelectorContainer, Cloneable

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     
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.taskdefs.MatchingTask Summary:
XsetIgnore,   XsetItems,   add,   addAnd,   addContains,   addContainsRegexp,   addCustom,   addDate,   addDepend,   addDepth,   addDifferent,   addFilename,   addMajority,   addModified,   addNone,   addNot,   addOr,   addPresent,   addSelector,   addSize,   addType,   appendSelector,   createExclude,   createExcludesFile,   createInclude,   createIncludesFile,   createPatternSet,   getDirectoryScanner,   getImplicitFileSet,   getSelectors,   hasSelectors,   selectorCount,   selectorElements,   setCaseSensitive,   setDefaultexcludes,   setExcludes,   setExcludesfile,   setFollowSymlinks,   setIncludes,   setIncludesfile,   setProject
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.MatchingTask Detail:
 public  void XsetIgnore(String ignoreString) 
    List of filenames and directory names to not include. They should be either , or " " (space) separated. The ignored files will be logged.
 public  void XsetItems(String itemString) 
    Set this to be the items in the base directory that you want to be included. You can also specify "*" for the items (ie: items="*") and it will include all the items in the base directory.
 public  void add(FileSelector selector) 
    add an arbitary selector
 public  void addAnd(AndSelector selector) 
    add an "And" selector entry on the selector list
 public  void addContains(ContainsSelector selector) 
    add a contains selector entry on the selector list
 public  void addContainsRegexp(ContainsRegexpSelector selector) 
    add a regular expression selector entry on the selector list
 public  void addCustom(ExtendSelector selector) 
    add an extended selector entry on the selector list
 public  void addDate(DateSelector selector) 
    add a selector date entry on the selector list
 public  void addDepend(DependSelector selector) 
    add a depends selector entry on the selector list
 public  void addDepth(DepthSelector selector) 
    add a depth selector entry on the selector list
 public  void addDifferent(DifferentSelector selector) 
    add a type selector entry on the type list
 public  void addFilename(FilenameSelector selector) 
    add a selector filename entry on the selector list
 public  void addMajority(MajoritySelector selector) 
    add a majority selector entry on the selector list
 public  void addModified(ModifiedSelector selector) 
    add the modified selector
 public  void addNone(NoneSelector selector) 
    add a "None" selector entry on the selector list
 public  void addNot(NotSelector selector) 
    add a "Not" selector entry on the selector list
 public  void addOr(OrSelector selector) 
    add an "Or" selector entry on the selector list
 public  void addPresent(PresentSelector selector) 
    add a present selector entry on the selector list
 public  void addSelector(SelectSelector selector) 
    add a "Select" selector entry on the selector list
 public  void addSize(SizeSelector selector) 
    add a selector size entry on the selector list
 public  void addType(TypeSelector selector) 
    add a type selector entry on the type list
 public  void appendSelector(FileSelector selector) 
    Add a new selector into this container.
 public NameEntry createExclude() 
    add a name entry on the exclude list
 public NameEntry createExcludesFile() 
    add a name entry on the include files list
 public NameEntry createInclude() 
    add a name entry on the include list
 public NameEntry createIncludesFile() 
    add a name entry on the include files list
 public PatternSet createPatternSet() 
    add a set of patterns
 protected DirectoryScanner getDirectoryScanner(File baseDir) 
    Returns the directory scanner needed to access the files to process.
 protected final FileSet getImplicitFileSet() 
    Accessor for the implicit fileset.
 public FileSelector[] getSelectors(Project p) 
    Returns the set of selectors as an array.
 public boolean hasSelectors() 
    Indicates whether there are any selectors here.
 public int selectorCount() 
    Gives the count of the number of selectors in this container
 public Enumeration selectorElements() 
    Returns an enumerator for accessing the set of selectors.
 public  void setCaseSensitive(boolean isCaseSensitive) 
    Sets case sensitivity of the file system
 public  void setDefaultexcludes(boolean useDefaultExcludes) 
    Sets whether default exclusions should be used or not.
 public  void setExcludes(String excludes) 
    Sets the set of exclude patterns. Patterns may be separated by a comma or a space.
 public  void setExcludesfile(File excludesfile) 
    Sets the name of the file containing the includes patterns.
 public  void setFollowSymlinks(boolean followSymlinks) 
    Sets whether or not symbolic links should be followed.
 public  void setIncludes(String includes) 
    Sets the set of include patterns. Patterns may be separated by a comma or a space.
 public  void setIncludesfile(File includesfile) 
    Sets the name of the file containing the includes patterns.
 public  void setProject(Project project) 
    {@inheritDoc}.