org.apache.tools.ant.taskdefs.optional.extension

Class ExtensionSet

public class ExtensionSet extends DataType

The Extension set lists a set of "Optional Packages" / "Extensions".

UNKNOWN: name="extension-set"

Method Summary
voidaddExtension(ExtensionAdapter extensionAdapter)
Adds an extension that this library requires.
voidaddFileset(FileSet fileSet)
Adds a set of files about which extensions data will be extracted.
voidaddLibfileset(LibFileSet fileSet)
Adds a set of files about which extensions data will be extracted.
protected voiddieOnCircularReference(Stack stk, Project p)
voidsetRefid(Reference reference)
Makes this instance in effect a reference to another ExtensionSet instance.
Extension[]toExtensions(Project proj)
Extract a set of Extension objects from the ExtensionSet.
StringtoString()

Method Detail

addExtension

public void addExtension(ExtensionAdapter extensionAdapter)
Adds an extension that this library requires.

Parameters: extensionAdapter an extension that this library requires.

addFileset

public void addFileset(FileSet fileSet)
Adds a set of files about which extensions data will be extracted.

Parameters: fileSet a set of files about which extensions data will be extracted.

addLibfileset

public void addLibfileset(LibFileSet fileSet)
Adds a set of files about which extensions data will be extracted.

Parameters: fileSet a set of files about which extensions data will be extracted.

dieOnCircularReference

protected void dieOnCircularReference(Stack stk, Project p)

setRefid

public void setRefid(Reference reference)
Makes this instance in effect a reference to another ExtensionSet instance.

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

Parameters: reference the reference to which this instance is associated

Throws: BuildException if this instance already has been configured.

toExtensions

public Extension[] toExtensions(Project proj)
Extract a set of Extension objects from the ExtensionSet.

Parameters: proj the project instance.

Returns: an array containing the Extensions from this set

Throws: BuildException if an error occurs

toString

public String toString()

Returns: the extensions in a string.

See Also: java.lang.Object#toString()