test for a task or other ant type existing in the current project
ComponentHelper helper =
ComponentHelper.getComponentHelper(getProject());
String componentName = ProjectHelper.genComponentName(uri, typename);
AntTypeDefinition def = helper.getDefinition(componentName);
if (def == null) {
return false;
}
//now verify that the class has an implementation
boolean found = def.getExposedClass(getProject()) != null;
if (!found) {
String text = helper.diagnoseCreationFailure(componentName, "type");
log(text, Project.MSG_VERBOSE);
}
return found;