org.apache.tools.ant.types

Class DirSet

public class DirSet extends AbstractFileSet implements ResourceCollection

Subclass as hint for supporting tasks that the included directories instead of files should be used.

Since: Ant 1.5

Constructor Summary
DirSet()
Constructor for DirSet.
protected DirSet(DirSet dirset)
Constructor for DirSet, with DirSet to shallowly clone.
Method Summary
Objectclone()
Return a DirSet 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.
StringtoString()
Returns included directories as a list of semicolon-separated paths.

Constructor Detail

DirSet

public DirSet()
Constructor for DirSet.

DirSet

protected DirSet(DirSet dirset)
Constructor for DirSet, with DirSet to shallowly clone.

Parameters: dirset the dirset to clone.

Method Detail

clone

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

Returns: the cloned dirset.

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

toString

public String toString()
Returns included directories as a list of semicolon-separated paths.

Returns: a String of included directories.