LUCENE-8768: Fix Javadocs build in Java 11

This commit is contained in:
Uwe Schindler 2019-04-20 01:01:13 +02:00
parent 77e1bec7dc
commit f1911f82d5
2 changed files with 10 additions and 11 deletions

View File

@ -23,6 +23,10 @@ Bug fixes:
* LUCENE-8663: NRTCachingDirectory.slowFileExists may open a file while
it's inaccessible. (Dawid Weiss)
Other
* LUCENE-8768: Fix Javadocs build in Java 11. (Namgyu Kim)
======================= Lucene 8.1.0 =======================
API Changes

View File

@ -179,6 +179,8 @@
<property name="javadoc.charset" value="utf-8"/>
<property name="javadoc.dir" location="${common.dir}/build/docs"/>
<property name="javadoc.maxmemory" value="512m" />
<!-- We must have the index disabled for releases, as Java 11 includes a javascript search engine with GPL license: -->
<property name="javadoc.noindex" value="true"/>
<!---TODO: Fix accessibility (order of H1/H2/H3 headings), see https://issues.apache.org/jira/browse/LUCENE-8729 -->
@ -2127,7 +2129,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
<sources />
<classpath refid="javadoc.classpath"/>
<arg line="--release ${javac.release}"/>
<arg line="--no-module-directories --release ${javac.release}"/>
<arg line="${javadoc.doclint.args}"/>
</javadoc>
<record name="@{destdir}/log_javadoc.txt" action="stop"/>
@ -2143,16 +2145,9 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
<delete>
<fileset file="@{destdir}/log_javadoc.txt">
<or>
<not>
<containsregexp expression="\[javadoc\]\s*[1-9][0-9]*\s*warning"/>
</not>
<and>
<!-- allow 1 warning, if there is also a bootstrap warning generated by Java7 -->
<containsregexp expression="\[javadoc\]\s*warning.*bootstrap"/>
<containsregexp expression="\[javadoc\]\s*1\s*warning"/>
</and>
</or>
<not>
<containsregexp expression="\[javadoc\]\s*[1-9][0-9]*\s*warning"/>
</not>
</fileset>
</delete>