Hi,

Here's a patch to build the javadoc information for the plugins.  Just a few changes to a couple of the ant files.  The new target is javadoc-plugins.

Matt


Index: build.xml
===================================================================
RCS file: /cvsroot/nutch/nutch/build.xml,v
retrieving revision 1.57
diff -u -r1.57 build.xml
--- build.xml        9 Jun 2004 11:10:57 -0000        1.57
+++ build.xml        2 Jul 2004 07:53:56 -0000
@@ -68,6 +68,10 @@
   <target name="compile-plugins">
     <ant dir="src/plugin" target="deploy" inheritAll="false"/>
   </target>
+  
+  <target name="compile-plugins">
+    <ant dir="src/plugin" target="deploy" inheritAll="false"/>
+  </target>
 
   <target name="generate-src" depends="init">
     <javacc target="${src.dir}/net/nutch/quality/dynamic/PageDescription.jj"
Index: src/plugin/build-plugin.xml
===================================================================
RCS file: /cvsroot/nutch/nutch/src/plugin/build-plugin.xml,v
retrieving revision 1.4
diff -u -r1.4 build-plugin.xml
--- src/plugin/build-plugin.xml        30 Jun 2004 22:15:51 -0000        1.4
+++ src/plugin/build-plugin.xml        2 Jul 2004 01:38:08 -0000
@@ -23,6 +23,8 @@
   <property name="build.classes" location="${build.dir}/classes"/>
   <property name="build.test" location="${build.dir}/test"/>
 
+  <property name="build.plugin.javadoc" location="${nutch.root}/build/plugins/${name}/api"/>
+  
   <property name="deploy.dir" location="${nutch.root}/build/plugins/${name}"/>
 
   <property name="javac.deprecation" value="on"/>
@@ -155,4 +157,24 @@
     <delete dir="${deploy.dir}"/>
   </target>
 
+  <target name="javadoc" depends="compile">
+    <mkdir dir="${build.plugin.javadoc}"/>
+    <javadoc
+      overview="${src.dir}/overview.html"
+      packagenames="net.nutch.*"
+      sourcepath="${src.dir}"
+      destdir="${build.plugin.javadoc}"
+      author="true"
+      version="true"
+      use="true"
+      windowtitle="${Name} ${version} API"
+      doctitle="${Name} ${version} API"
+      bottom="Copyright &amp;copy; ${year} Mike Cafarella.  All Rights Reserved."
+      >
+        <link href="">
+        <classpath refid="classpath"/>
+    </javadoc>
+  </target>
+  
+  
 </project>
Index: src/plugin/build.xml
===================================================================
RCS file: /cvsroot/nutch/nutch/src/plugin/build.xml,v
retrieving revision 1.9
diff -u -r1.9 build.xml
--- src/plugin/build.xml        30 Jun 2004 22:15:51 -0000        1.9
+++ src/plugin/build.xml        2 Jul 2004 01:38:08 -0000
@@ -41,5 +41,15 @@
     <ant dir="creativecommons" target="clean"/>
     <ant dir="languageidentifier" target="clean"/>
   </target>
+  
+  <target name="javadoc">
+    <ant dir="protocol-file" target="javadoc"/>
+    <ant dir="protocol-ftp" target="javadoc"/>
+    <ant dir="protocol-http" target="javadoc"/>
+    <ant dir="parse-html" target="javadoc"/>
+    <ant dir="parse-text" target="javadoc"/>
+    <ant dir="parse-pdf" target="javadoc"/>
+    <ant dir="parse-msword" target="javadoc"/>  
+  </target>
 
 </project>

Reply via email to