org.rhq.bundle.ant.type
Class FileSet

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by org.rhq.bundle.ant.type.AbstractBundleType
              extended by org.rhq.bundle.ant.type.FileSet
All Implemented Interfaces:
Cloneable

public class FileSet
extends AbstractBundleType

A fileset that supports includes, but not excludes or selectors.


Field Summary
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
FileSet()
          Construct a new IncludesFileSet.
 
Method Summary
 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.
 
Methods inherited from class org.rhq.bundle.ant.type.AbstractBundleType
buildIncludePatternRegex, getPattern, getProject
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSet

public FileSet()
Construct a new IncludesFileSet.

Method Detail

setRefid

public void setRefid(org.apache.tools.ant.types.Reference r)
              throws org.apache.tools.ant.BuildException
Makes this instance in effect a reference to another instance.

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

Overrides:
setRefid in class org.apache.tools.ant.types.DataType
Parameters:
r - the Reference to use.
Throws:
org.apache.tools.ant.BuildException

setDir

public void setDir(String dir)
            throws org.apache.tools.ant.BuildException
Sets the base-directory for this instance.

Parameters:
dir - the directory's File instance.
Throws:
org.apache.tools.ant.BuildException

getDir

public File getDir()
Retrieves the base-directory for this instance.

Returns:
the base-directory for this instance

createInclude

public org.apache.tools.ant.types.PatternSet.NameEntry createInclude()
Add a name entry to the include list.

Returns:
PatternSet.NameEntry.

setFile

public void setFile(String file)
Creates a single file fileset.

Parameters:
file - the single File included in this AbstractFileSet.

setIncludes

public void setIncludes(String includes)
Appends includes to the current list of include patterns.

Patterns may be separated by a comma or a space.

Parameters:
includes - the String containing the include patterns.

getIncludePatterns

public String[] getIncludePatterns()

getDataTypeName

protected String getDataTypeName()
Gets as descriptive as possible a name used for this datatype instance.

Overrides:
getDataTypeName in class org.apache.tools.ant.types.DataType
Returns:
String name.

getRef

protected FileSet getRef(org.apache.tools.ant.Project p)
Performs the check for circular references and returns the referenced FileSet.


toString

public String toString()
Returns the list of unresolved include patterns.

Overrides:
toString in class org.apache.tools.ant.types.DataType
Returns:
the list of unresolved include patterns


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.