lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r161996 - lucene/java/trunk/build.xml
Date Wed, 20 Apr 2005 00:38:58 GMT
Author: ehatcher
Date: Tue Apr 19 17:38:57 2005
New Revision: 161996

URL: http://svn.apache.org/viewcvs?view=rev&rev=161996
Log:
#34528 - Ant macro for javadocs and javadocs-internal

Modified:
    lucene/java/trunk/build.xml

Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/build.xml?view=diff&r1=161995&r2=161996
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Tue Apr 19 17:38:57 2005
@@ -420,45 +420,44 @@
   <!-- ================================================================== -->
   <!--                                                                    -->
   <!-- ================================================================== -->
+  <macrodef name="invoke-javadoc">
+    <attribute name="access"/>
+    <attribute name="destdir"/>
+    <sequential>
+      <javadoc
+        sourcepath="src/java"
+        overview="src/java/overview.html"
+        packagenames="org.apache.lucene.*"
+        destdir="@{destdir}"
+        access="@{access}"
+        encoding="${build.encoding}"
+        author="true"
+        version="true"
+        use="true"
+        link="${javadoc.link}"
+        windowtitle="${Name} ${version} API"
+        doctitle="${Name} ${version} API"
+        bottom="Copyright &amp;copy; ${year} Apache Software Foundation.  All Rights
Reserved."
+      >
+        <tag name="todo" description="To Do:"/>
+      </javadoc>
+    </sequential>
+  </macrodef>
+
   <target name="javadocs">
     <mkdir dir="${build.dir}/docs/api"/>
-    <javadoc
-      sourcepath="src/java"
-      overview="src/java/overview.html"
-      packagenames="org.apache.lucene.*"
+    <invoke-javadoc
+      access="public"
       destdir="${build.dir}/docs/api"
-      encoding="${build.encoding}"
-      author="true"
-      version="true"
-      use="true"
-      link="${javadoc.link}"
-      windowtitle="${Name} ${version} API"
-      doctitle="${Name} ${version} API"
-      bottom="Copyright &amp;copy; ${year} Apache Software Foundation.  All Rights Reserved."
-      >
-      <tag name="todo" description="To Do:"/>
-    </javadoc>
+    />
   </target>
 
   <target name="javadocs-internal">
     <mkdir dir="${build.dir}/docs/api-internal"/>
-    <javadoc
-      sourcepath="src/java"
-      overview="src/java/overview.html"
-      packagenames="org.apache.lucene.*"
-      access="package"
+    <invoke-javadoc
+      access="private"
       destdir="${build.dir}/docs/api-internal"
-      encoding="${build.encoding}"
-      author="true"
-      version="true"
-      use="true"
-      link="${javadoc.link}"
-      windowtitle="${Name} ${version} public and internal API"
-      doctitle="${Name} ${version} public and internal API"
-      bottom="Copyright &amp;copy; ${year} Apache Software Foundation.  All Rights Reserved."
-      >
-      <tag name="todo" description="To Do:"/>
-    </javadoc>
+    />
   </target>
 
   <!-- ================================================================== -->



Mime
View raw message