Class Ant.Reference
java.lang.Object
org.apache.tools.ant.types.Reference
org.apache.tools.ant.taskdefs.Ant.Reference
- Enclosing class:
Ant
Helper class that implements the nested <reference>
element of <ant> and <antcall>.
- Since:
- Ant 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the id under which this reference will be stored in the new project.voidsetToRefid(String targetid) Set the id that this reference to be stored under in the new project.Methods inherited from class Reference
getProject, getReferencedObject, getReferencedObject, getRefId, setProject, setRefIdModifier and TypeMethodDescriptionGet the associated project, if any; may be null.<T> TResolve the reference, looking in the associated project.<T> TgetReferencedObject(Project fallback) Resolve the reference, using the associated project if it set, otherwise use the passed in project.getRefId()Get the reference id of this reference.voidSet the associated project.voidSet the reference id.
-
Constructor Details
-
Reference
public Reference()
-
-
Method Details
-
setToRefid
Set the id that this reference to be stored under in the new project.- Parameters:
targetid- the id under which this reference will be passed to the new project.
-
getToRefid
Get the id under which this reference will be stored in the new project.- Returns:
- the id of the reference in the new project.
-