|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.types.DataType org.apache.tools.ant.types.resources.Archives
public class Archives
A resource collection that treats all nested resources as archives and returns the contents of the archives as its content.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.types.DataType |
---|
checked, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Archives()
|
Method Summary | |
---|---|
java.lang.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(java.util.Stack stk,
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()
Indicate whether this ResourceCollection is composed entirely of Resources accessible via local filesystem conventions. |
java.util.Iterator |
iterator()
Merges the nested collections. |
void |
setRefid(Reference r)
Overrides the base version. |
int |
size()
Sums the sizes of nested archives. |
Methods inherited from class org.apache.tools.ant.types.DataType |
---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Archives()
Method Detail |
---|
public Union createZips()
public Union createTars()
public int size()
size
in interface ResourceCollection
public java.util.Iterator iterator()
iterator
in interface ResourceCollection
public boolean isFilesystemOnly()
ResourceCollection
isFilesystemOnly
in interface ResourceCollection
public void setRefid(Reference r)
setRefid
in class DataType
r
- the Reference to set.public java.lang.Object clone()
clone
in class DataType
protected java.util.Iterator grabArchives()
protected ArchiveFileSet configureArchive(ArchiveFileSet afs, Resource src)
protected void dieOnCircularReference(java.util.Stack stk, Project p) throws BuildException
dieOnCircularReference
in class DataType
stk
- the stack of data types to use (recursively).p
- the project to use to dereference the references.
BuildException
- on error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |