Skip to content

Apache Lucene open-source search software

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

Uwe Schindler42dcc00374aa
diff --git a/build.xml b/build.xml
index 6c047bc718c..7ce7fa56e3b 100644
--- a/build.xml
+++ b/build.xml
@@ -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>
diff --git a/contrib/contrib-build.xml b/contrib/contrib-build.xml
index 8e3ba9bd550..4f8cff75f46 100644
--- a/contrib/contrib-build.xml
+++ b/contrib/contrib-build.xml
@@ -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>
diff --git a/contrib/db/build.xml b/contrib/db/build.xml
index e36b5d0ee0f..2e34f7f2630 100644
--- a/contrib/db/build.xml
+++ b/contrib/db/build.xml
@@ -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>