org.apache.tools.ant.types

Class FileSet

public class FileSet extends AbstractFileSet implements ResourceCollection

Moved out of MatchingTask to make it a standalone object that could be referenced (by scripts for example).
Constructor Summary
FileSet()
Constructor for FileSet.
protected FileSet(FileSet fileset)
Constructor for FileSet, with FileSet to shallowly clone.
Method Summary
Objectclone()
Return a FileSet that has the same basedir and same patternsets as this one.
booleanisFilesystemOnly()
Always returns true.
Iteratoriterator()
Fulfill the ResourceCollection contract.
intsize()
Fulfill the ResourceCollection contract.

Constructor Detail

FileSet

public FileSet()
Constructor for FileSet.

FileSet

protected FileSet(FileSet fileset)
Constructor for FileSet, with FileSet to shallowly clone.

Parameters: fileset the fileset to clone

Method Detail

clone

public Object clone()
Return a FileSet that has the same basedir and same patternsets as this one.

Returns: the cloned fileset

isFilesystemOnly

public boolean isFilesystemOnly()
Always returns true.

Returns: true indicating that all elements will be FileResources.

Since: Ant 1.7

iterator

public Iterator iterator()
Fulfill the ResourceCollection contract.

Returns: an Iterator of Resources.

Since: Ant 1.7

size

public int size()
Fulfill the ResourceCollection contract.

Returns: number of elements as int.

Since: Ant 1.7