org.apache.tools.ant.types.resources
public class Archives extends DataType implements ResourceCollection, Cloneable
Since: Ant 1.8.0
Method Summary | |
---|---|
Object | clone()
Implement clone. |
protected ArchiveFileSet | configureArchive(ArchiveFileSet afs, Resource src)
Configures the archivefileset based on this type's settings,
set the source. |
Union | createTars()
Wrapper to identify nested resource collections as ZIP
archives. |
Union | createZips()
Wrapper to identify nested resource collections as ZIP
archives. |
protected void | dieOnCircularReference(Stack stk, Project p)
Overrides the version of DataType to recurse on all DataType
child elements that may have been added. |
protected Iterator | grabArchives()
Turns all nested resources into corresponding ArchiveFileSets
and returns an iterator over the collected archives. |
boolean | isFilesystemOnly() |
Iterator | iterator()
Merges the nested collections. |
void | setRefid(Reference r)
Overrides the base version. |
int | size()
Sums the sizes of nested archives. |
Returns: a cloned instance.
Parameters: stk the stack of data types to use (recursively). p the project to use to dereference the references.
Throws: BuildException on error.
Returns: false
Parameters: r the Reference to set.