Make ant docs work with excluded sources.

Turns out that Javadoc needs to know about other classes even if we
exclude their sources. The reason for excluding sources is that we
don't want to include their documentation in the generated
documentation. We can fix this by including compiled classes while
still excluding their sources.
This commit is contained in:
Karsten Loesing 2020-06-18 08:59:14 +02:00
parent b5e1a2d7b2
commit 92e78eda6a

View File

@ -156,7 +156,7 @@
</javac>
</target>
<target name="docs" depends="gitrev" >
<target name="docs" depends="gitrev, compile" >
<tstamp>
<format property="copyyear"
pattern="yyyy"
@ -174,7 +174,10 @@
overview="${basedir}/${resources}/overview.html"
use="true"
windowtitle="${javadoc-title}">
<classpath refid="classpath"/>
<classpath>
<path refid="classpath"/>
<pathelement location="${classes}"/>
</classpath>
<fileset dir="${sources}" excludes="${javadoc-excludes}"/>
</javadoc>
<copy file="${javadocicon}" todir="${docs}"/>