void (AntDomElement element) { // todo: add support to includefile and excludefile if ("include".equals(element.getXmlElementName()) && !(element instanceof AntDomInclude)) { if (isEnabled(element)) { final String value = getAttributeValue(element, "name"); if (value != null) { addIncludePattern(value); } } } else if ("exclude".equals(element.getXmlElementName())) { if (isEnabled(element)) { final String value = getAttributeValue(element, "name"); if (value != null) { addExcludePattern(value); } } } else { // todo: add support to includesfile and excludesfile final String includeAttribs = getAttributeValue(element, "includes"); if (includeAttribs != null) { addPatterns(true, includeAttribs); } final String excludeAttribs = getAttributeValue(element, "excludes"); if (excludeAttribs != null) { addPatterns(false, excludeAttribs); } } final AntDomElement referred = element.getRefId().getValue(); if (referred != null) { referred.accept(this); } super.visitAntDomElement(element); }