Build an index.html on the top-level Javadocs folder (e.g. hudson will use it as entry point)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788039 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-06-24 14:34:09 +00:00
parent d9f11b9be4
commit 42dcc00374
3 changed files with 29 additions and 2 deletions

View File

@ -240,7 +240,23 @@
</target>
<target name="javadocs" description="Generate javadoc"
depends="javadocs-all, javadocs-core, javadocs-demo, javadocs-contrib"/>
depends="javadocs-all, javadocs-core, javadocs-demo, javadocs-contrib">
<echo file="${javadoc.dir}/index.html" append="false">
<![CDATA[<html><head><title>${Name} ${version} Javadoc Index</title></head>
<body>
<h1>${Name} ${version} Javadoc Index</h1>
<ul>
<li><a href="all/index.html">All</a></li>
<li><a href="core/index.html">Core</a></li>
<li>Contrib packages:</li>
<ul>
]]></echo>
<contrib-crawl target="javadocs-index.html" failonerror="false"/>
<echo file="${javadoc.dir}/index.html" append="true"><![CDATA[
</ul>
<li><a href="demo/index.html">Demo</a></li>
</ul></body>]]></echo>
</target>
<target name="javadocs-core" description="Generate javadoc for core classes">
<sequential>

View File

@ -103,4 +103,12 @@
<jarify basedir="${javadoc.dir}/contrib-${name}" destfile="${build.dir}/${final.name}-javadoc.jar"/>
</sequential>
</target>
<target name="javadocs-index.html" description="Generate line for index.html of JavaDocs">
<echo file="${javadoc.dir}/index.html" append="true">
<![CDATA[
<li><a href="contrib-${name}/index.html">${name}</a></li>
]]></echo>
</target>
</project>

View File

@ -64,6 +64,9 @@
<ant dir="bdb-je" target="javadocs" />
</target>
<target name="javadocs-index.html">
<ant dir="bdb" target="javadocs-index.html" />
<ant dir="bdb-je" target="javadocs-index.html" />
</target>
</project>