Class TypeFound
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.TypeFound
looks for a task or other Ant type that exists. Existence is defined as
the type is defined, and its implementation class is present. This
will work for datatypes and preset, script and macro definitions.
-
Field Summary
Fields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoesTypeExist(String typename) test for a task or other ant type existing in the current projectbooleaneval()Is this condition true?voidthe task or other type to look forvoidThe URI for this definition.Methods inherited from class ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectModifier and TypeMethodDescriptionclone()Returns the description of the current action.Returns the file/location where this task was defined.Returns the project to which this component belongs.voidLogs a message with the default (INFO) priority.voidLogs a message with the given priority.voidsetDescription(String desc) Sets a description of the current action.voidsetLocation(Location location) Sets the file/location where this task was defined.voidsetProject(Project project) Sets the project object of this component.
-
Constructor Details
-
TypeFound
public TypeFound()
-
-
Method Details
-
setName
the task or other type to look for- Parameters:
name- the name of the type
-
setURI
The URI for this definition.- Parameters:
uri- the namespace URI. If this is not set, use the default ant namespace.
-
doesTypeExist
test for a task or other ant type existing in the current project- Parameters:
typename- the name of the type- Returns:
- true if the typename exists
-
eval
Is this condition true?- Specified by:
evalin interfaceCondition- Returns:
- true if the condition is true
- Throws:
BuildException- if an error occurs
-