public class TypeFound extends ProjectComponent implements Condition
description, location, project
Constructor and Description |
---|
TypeFound() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doesTypeExist(java.lang.String typename)
test for a task or other ant type existing in the current project
|
boolean |
eval()
Is this condition true?
|
void |
setName(java.lang.String name)
the task or other type to look for
|
void |
setURI(java.lang.String uri)
The URI for this definition.
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setName(java.lang.String name)
name
- the name of the typepublic void setURI(java.lang.String uri)
uri
- the namespace URI. If this is not set, use the
default ant namespace.protected boolean doesTypeExist(java.lang.String typename)
typename
- the name of the typepublic boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if an error occurs