java.lang.Cloneable, java.lang.Iterable<Resource>, ResourceCollectionpublic class Archives extends DataType implements ResourceCollection, java.lang.Cloneable
description, location, project| Constructor | Description |
|---|---|
Archives() |
| Modifier and Type | Method | Description |
|---|---|---|
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<java.lang.Object> stk,
Project p) |
Overrides the version of DataType to recurse on all DataType
child elements that may have been added.
|
protected Archives |
getCheckedRef() |
Performs the check for circular references and returns the
referenced object.
|
protected java.util.Iterator<ArchiveFileSet> |
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<Resource> |
iterator() |
Merges the nested collections.
|
void |
setRefid(Reference r) |
Overrides the base version.
|
int |
size() |
Sums the sizes of nested archives.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectisEmpty, streampublic Union createZips()
public Union createTars()
public int size()
size in interface ResourceCollectionpublic java.util.Iterator<Resource> iterator()
iterator in interface java.lang.Iterable<Resource>public boolean isFilesystemOnly()
ResourceCollectionFileProvider when asked via
Resource.as(java.lang.Class<T>).isFilesystemOnly in interface ResourceCollectionpublic void setRefid(Reference r)
public java.lang.Object clone()
protected java.util.Iterator<ArchiveFileSet> grabArchives()
protected ArchiveFileSet configureArchive(ArchiveFileSet afs, Resource src)
afs - ArchiveFileSetsrc - Resourceprotected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
Project p)
throws BuildException
dieOnCircularReference in class DataTypestk - the stack of data types to use (recursively).p - the project to use to dereference the references.BuildException - on error.protected Archives getCheckedRef()
DataTypegetCheckedRef in class DataType