lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r788039 - in /lucene/java/trunk: build.xml contrib/contrib-build.xml contrib/db/build.xml
Date Wed, 24 Jun 2009 14:34:09 GMT
Author: uschindler
Date: Wed Jun 24 14:34:09 2009
New Revision: 788039

URL: http://svn.apache.org/viewvc?rev=788039&view=rev
Log:
Build an index.html on the top-level Javadocs folder (e.g. hudson will use it as entry point)

Modified:
    lucene/java/trunk/build.xml
    lucene/java/trunk/contrib/contrib-build.xml
    lucene/java/trunk/contrib/db/build.xml

Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=788039&r1=788038&r2=788039&view=diff
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Wed Jun 24 14:34:09 2009
@@ -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>

Modified: lucene/java/trunk/contrib/contrib-build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/contrib-build.xml?rev=788039&r1=788038&r2=788039&view=diff
==============================================================================
--- lucene/java/trunk/contrib/contrib-build.xml (original)
+++ lucene/java/trunk/contrib/contrib-build.xml Wed Jun 24 14:34:09 2009
@@ -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>

Modified: lucene/java/trunk/contrib/db/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/db/build.xml?rev=788039&r1=788038&r2=788039&view=diff
==============================================================================
--- lucene/java/trunk/contrib/db/build.xml (original)
+++ lucene/java/trunk/contrib/db/build.xml Wed Jun 24 14:34:09 2009
@@ -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>



Mime
View raw message