Package org.apache.ant.antunit
Class AntUnit.ReferenceSet
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.ant.antunit.AntUnit.ReferenceSet
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- AntUnit
public static class AntUnit.ReferenceSet extends org.apache.tools.ant.ProjectComponent
Defines a collection of inheritedreferences
, with an optional nestedMapper
that maps them to new reference IDs in the target project.
-
-
Constructor Summary
Constructors Constructor Description ReferenceSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
addReference
public void addReference(AntUnit.Reference reference)
-
createMapper
public org.apache.tools.ant.types.Mapper createMapper()
-
setMapper
public void setMapper(java.lang.String typeName, java.lang.String from, java.lang.String to)
Configure a single mapper to translate reference IDs.- Parameters:
typeName
- the mapper typefrom
- the from attributeto
- the to attribute
-
copyReferencesInto
public 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.- Parameters:
newProject
- the target project to copy references into
-
-