Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » types » [javadoc | source]
org.apache.tools.ant.types
public class: PatternSet [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.types.DataType
         org.apache.tools.ant.types.PatternSet

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    InvertedPatternSet

Named collection of include/exclude tags.

Moved out of MatchingTask to make it a standalone object that could be referenced (by scripts for example).
Nested Class Summary:
public class  PatternSet.NameEntry  inner class to hold a name on list. "If" and "Unless" attributes may be used to invalidate the entry based on the existence of a property (typically set thru the use of the Available task) or value of an expression. 
Fields inherited from org.apache.tools.ant.types.DataType:
ref,  checked
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Constructor:
 public PatternSet() 
Method from org.apache.tools.ant.types.PatternSet Summary:
addConfiguredInvert,   addConfiguredPatternset,   append,   clone,   createExclude,   createExcludesFile,   createInclude,   createIncludesFile,   getExcludePatterns,   getIncludePatterns,   hasPatterns,   setExcludes,   setExcludesfile,   setIncludes,   setIncludesfile,   setRefid,   toString
Methods from org.apache.tools.ant.types.DataType:
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   pushAndInvokeCircularReferenceCheck,   setChecked,   setRefid,   toString,   tooManyAttributes
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.types.PatternSet Detail:
 public  void addConfiguredInvert(PatternSet p) 
    Add an inverted patternset.
 public  void addConfiguredPatternset(PatternSet p) 
    This is a patternset nested element.
 public  void append(PatternSet other,
    Project p) 
    Adds the patterns of the other instance to this set.
 public Object clone() 
 public NameEntry createExclude() 
    add a name entry on the exclude list
 public NameEntry createExcludesFile() 
    add a name entry on the exclude 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 String[] getExcludePatterns(Project p) 
    Returns the filtered include patterns.
 public String[] getIncludePatterns(Project p) 
    Returns the filtered include patterns.
 public boolean hasPatterns(Project p) 
    Helper for FileSet classes. Check if there are patterns defined.
 public  void setExcludes(String excludes) 
    Appends excludes to the current list of exclude patterns. Patterns may be separated by a comma or a space.
 public  void setExcludesfile(File excludesFile) throws BuildException 
    Sets the name of the file containing the excludes patterns.
 public  void setIncludes(String includes) 
    Appends includes to the current list of include patterns. Patterns may be separated by a comma or a space.
 public  void setIncludesfile(File includesFile) throws BuildException 
    Sets the name of the file containing the includes patterns.
 public  void setRefid(Reference r) throws BuildException 
    Makes this instance in effect a reference to another PatternSet instance.

    You must not set another attribute or nest elements inside this element if you make it a reference.

 public String toString()