Apache Lucene open-source search software
disable java6 documentation-lint (it generates totally broken html). enable checking for unpaired tags
Robert Muir8514b70ba312
diff --git a/dev-tools/scripts/checkJavadocLinks.py b/dev-tools/scripts/checkJavadocLinks.pyindex 35bf05eb516..20993145741 100644--- a/dev-tools/scripts/checkJavadocLinks.py+++ b/dev-tools/scripts/checkJavadocLinks.py@@ -32,12 +32,17 @@ class FindHyperlinks(HTMLParser):def __init__(self, baseURL):HTMLParser.__init__(self)+ self.stack = []self.anchors = set()self.links = []self.baseURL = baseURLself.printed = Falsedef handle_starttag(self, tag, attrs):+ # NOTE: I don't think 'a' should be in here. But try debugging+ # NumericRangeQuery.html. (Could be javadocs bug, its a generic type...)+ if tag not in ('link', 'meta', 'frame', 'br', 'hr', 'p', 'li', 'img', 'col', 'a'):+ self.stack.append(tag)if tag == 'a':name = Nonehref = None@@ -74,6 +79,18 @@ class FindHyperlinks(HTMLParser):else:raise RuntimeError('couldn\'t find an href nor name in link in %s: only got these attrs: %s' % (self.baseURL, attrs))+ def handle_endtag(self, tag):+ if tag in ('link', 'meta', 'frame', 'br', 'hr', 'p', 'li', 'img', 'col', 'a'):+ return++ if len(self.stack) == 0:+ raise RuntimeError('%s %s:%s: saw </%s> no opening <%s>' % (self.baseURL, self.getpos()[0], self.getpos()[1], tag, self.stack[-1]))++ if self.stack[-1] == tag:+ self.stack.pop()+ else:+ raise RuntimeError('%s %s:%s: saw </%s> but expected </%s>' % (self.baseURL, self.getpos()[0], self.getpos()[1], tag, self.stack[-1]))+def printFile(self):if not self.printed:print()diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex a965efc4ffc..bf60b6970eb 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -273,7 +273,6 @@<contains string="${java.vm.name}" substring="jrockit" casesensitive="false"/></or><or>- <equals arg1="${ant.java.version}" arg2="1.6"/><equals arg1="${ant.java.version}" arg2="1.7"/><equals arg1="${ant.java.version}" arg2="1.8"/></or>