org.apache.tools.ant.types.resources
public class MappedResourceCollection extends DataType implements ResourceCollection, Cloneable
Since: Ant 1.8.0
Method Summary | |
---|---|
void | add(ResourceCollection c)
Adds the required nested ResourceCollection. |
void | add(FileNameMapper fileNameMapper)
Add a nested filenamemapper. |
Object | clone()
Implement clone. |
Mapper | createMapper()
Define the mapper to map source to destination files. |
protected void | dieOnCircularReference(Stack stk, Project p)
Overrides the version of DataType to recurse on all DataType
child elements that may have been added. |
boolean | isFilesystemOnly() |
Iterator | iterator() |
void | setCache(boolean cache)
Set whether to cache collections. |
void | setEnableMultipleMappings(boolean enableMultipleMappings)
Set method of handling mappers that return multiple
mappings for a given source path. |
void | setRefid(Reference r)
Overrides the base version. |
int | size() |
Parameters: c the ResourceCollection to add.
Throws: BuildException on error.
Parameters: fileNameMapper the mapper to add.
Since: Ant 1.6.3
Returns: a cloned instance.
Returns: a mapper to be configured.
Throws: BuildException if more than one mapper is defined.
Parameters: stk the stack of data types to use (recursively). p the project to use to dereference the references.
Throws: BuildException on error.
Since: Ant 1.8.1
Parameters: enableMultipleMappings If true the type will use all the mappings for a given source path, if false, only the first mapped name is processed. By default, this setting is false to provide backward compatibility with earlier releases.
Since: Ant 1.8.1
Parameters: r the Reference to set.