org.apache.ant.compress.resources
public class Archives extends org.apache.tools.ant.types.DataType implements org.apache.tools.ant.types.ResourceCollection, java.lang.Cloneable
Constructor and Description |
---|
Archives() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Implement clone.
|
protected org.apache.tools.ant.types.ArchiveFileSet |
configureArchive(org.apache.tools.ant.types.ArchiveFileSet afs,
org.apache.tools.ant.types.Resource src)
Configures the archivefileset based on this type's settings,
set the source.
|
org.apache.tools.ant.types.resources.Union |
createArs()
Wrapper to identify nested resource collections as AR
archives.
|
org.apache.tools.ant.types.resources.Union |
createCpios()
Wrapper to identify nested resource collections as CPIO
archives.
|
org.apache.tools.ant.types.resources.Union |
createTars()
Wrapper to identify nested resource collections as ZIP
archives.
|
org.apache.tools.ant.types.resources.Union |
createZips()
Wrapper to identify nested resource collections as ZIP
archives.
|
protected void |
dieOnCircularReference(java.util.Stack stk,
org.apache.tools.ant.Project p)
Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
|
protected java.util.Iterator |
grabArchives()
Turns all nested resources into corresponding ArchiveFileSets
and returns an iterator over the collected archives.
|
boolean |
isFilesystemOnly() |
java.util.Iterator |
iterator()
Merges the nested collections.
|
void |
setRefid(org.apache.tools.ant.types.Reference r)
Overrides the base version.
|
int |
size()
Sums the sizes of nested archives.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
public org.apache.tools.ant.types.resources.Union createZips()
public org.apache.tools.ant.types.resources.Union createTars()
public org.apache.tools.ant.types.resources.Union createArs()
public org.apache.tools.ant.types.resources.Union createCpios()
public int size()
size
in interface org.apache.tools.ant.types.ResourceCollection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable<org.apache.tools.ant.types.Resource>
iterator
in interface org.apache.tools.ant.types.ResourceCollection
public boolean isFilesystemOnly()
isFilesystemOnly
in interface org.apache.tools.ant.types.ResourceCollection
public void setRefid(org.apache.tools.ant.types.Reference r)
setRefid
in class org.apache.tools.ant.types.DataType
r
- the Reference to set.public java.lang.Object clone()
clone
in class org.apache.tools.ant.types.DataType
protected java.util.Iterator grabArchives()
protected org.apache.tools.ant.types.ArchiveFileSet configureArchive(org.apache.tools.ant.types.ArchiveFileSet afs, org.apache.tools.ant.types.Resource src)
protected void dieOnCircularReference(java.util.Stack stk, org.apache.tools.ant.Project p) throws org.apache.tools.ant.BuildException
dieOnCircularReference
in class org.apache.tools.ant.types.DataType
stk
- the stack of data types to use (recursively).p
- the project to use to dereference the references.org.apache.tools.ant.BuildException
- on error.