org.apache.tools.ant.taskdefs.condition
Class IsReference
- Cloneable, Condition
Condition that tests whether a given reference has been defined.
Optionally tests whether it is of a given type/class.
eval
public boolean eval()
throws BuildException
- eval in interface Condition
- true if the reference exists and if type is set, if
the reference is the same type
setRefid
public void setRefid(Reference r)
Set the refid attribute.
setType
public void setType(String type)
Set the type attribute. This is optional attribute.
type
- an ant component type name