public static class AntUnit.ReferenceSet
extends org.apache.tools.ant.ProjectComponent
references
,
with an optional nested Mapper
that maps them to new
reference IDs in the target project.Constructor and Description |
---|
ReferenceSet() |
Modifier and Type | Method and Description |
---|---|
void |
addReference(AntUnit.Reference reference) |
void |
copyReferencesInto(org.apache.tools.ant.Project newProject)
Copy all identified references into the target project,
applying any name mapping required by a nested mapper
element.
|
org.apache.tools.ant.types.Mapper |
createMapper() |
void |
setMapper(java.lang.String typeName,
java.lang.String from,
java.lang.String to)
Configure a single mapper to translate reference IDs.
|
public void addReference(AntUnit.Reference reference)
public org.apache.tools.ant.types.Mapper createMapper()
public void setMapper(java.lang.String typeName, java.lang.String from, java.lang.String to)
typeName
- the mapper typefrom
- the from attributeto
- the to attributepublic void copyReferencesInto(org.apache.tools.ant.Project newProject)
newProject
- the target project to copy references into