james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r537582 - in /james/server/trunk/build-tools: base-build.xml module-build.xml
Date Sun, 13 May 2007 12:28:37 GMT
Author: rdonkin
Date: Sun May 13 05:28:36 2007
New Revision: 537582

URL: http://svn.apache.org/viewvc?view=rev&rev=537582
Log:
Javadoc builds for modules. Ensure jars have LICENSE and NOTICE files.

Modified:
    james/server/trunk/build-tools/base-build.xml
    james/server/trunk/build-tools/module-build.xml

Modified: james/server/trunk/build-tools/base-build.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/base-build.xml?view=diff&rev=537582&r1=537581&r2=537582
==============================================================================
--- james/server/trunk/build-tools/base-build.xml (original)
+++ james/server/trunk/build-tools/base-build.xml Sun May 13 05:28:36 2007
@@ -75,6 +75,19 @@
         </sequential>   
     </macrodef>   
     
+    <macrodef name='PopulateMetaData'>
+        <attribute name='bin'/>
+        <attribute name='src'/>   
+        <sequential>
+            <copy todir='@{bin}/META-INF'>
+                <fileset dir="@{src}">
+                    <include name='LICENSE.txt'/>
+                    <include name='NOTICE.txt'/>
+                </fileset>    
+            </copy>    
+        </sequential>
+    </macrodef>   
+    
     <macrodef name="Compile">
         <attribute name='src'/>
         <attribute name='resources'/>   
@@ -114,6 +127,7 @@
                     <include name='**/*'/>
                 </fileset>   
             </copy>
+            <PopulateMetaData bin='@{bin}' src='.' />
         </sequential>   
     </macrodef>   
     
@@ -311,10 +325,47 @@
                     <attribute name='Implementation-Version' value='@{version}'/>
                     <attribute name='Implementation-Vendor' value='@{vendor.impl}'/>
                     <attribute name="Implementation-Vendor-Id" value="@{vendor.id}"/>
  
-            </manifest>    
+                </manifest>  
             </jar>   
         </sequential>   
     </macrodef>
+ 
+    <macrodef name='CreateJavaDocs'>
+        <attribute name='bin' default='${build.javadocs}'/> 
+        <attribute name='src' default='${dir.src.java}'/> 
+        <attribute name='classpath-refid' default='classpath.main'/>   
+        <sequential>
+            <delete dir="@{bin}"/>
+            <mkdir dir="@{bin}"/>
+            <javadoc 
+                   packagenames="org.apache.*" 
+                   sourcepath="@{src}" 
+                   destdir="@{bin}">
+                <classpath refid="@{classpath-refid}"/>
+                <doclet name="com.sun.tools.doclets.standard.Standard">
+                    <param name="-author"/>
+                    <param name="-version"/>
+                    <param name="-use"/>
+                    <param name="-breakiterator"/>
+                    <param name="-link" value="http://java.sun.com/j2se/1.4/docs/api"/>
+                    <param name="-link" value="http://java.sun.com/j2ee/sdk_1.3/techdocs/api"/>
+                    <param name="-link" value="http://avalon.apache.org/api"/>
+                    <param name="-link" value="http://avalon.apache.org/phoenix/api"/>
+                    <param name="-link" value="http://avalon.apache.org/cornerstone/api"/>
+                    <param name="-link" value="http://avalon.apache.org/logkit/api"/>
+                    <param name="-doctitle" value="${Name} ${version}"/>
+                    <param name="-windowtitle" value="${Name} API"/>
+                    <param name="-bottom" value="Licensed to the Apache Software Foundation
(ASF) under one or more contributor license agreements. The ASF licenses this file to you
under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)."/>
+                    <param name="-tag" value="phoenix\:mx\-topic:X"/>
+                    <param name="-tag" value="phoenix\:mx\-operation:X"/>
+                    <param name="-tag" value="phoenix\:mx\-description:X"/>
+                    <param name="-tag" value="phoenix\:mx\-attribute:X"/>
+                    <param name="-tag" value="phoenix\:mx\-isWriteable:X"/>
+                </doclet>
+            </javadoc>     
+            <PopulateMetaData bin='@{bin}' src='.' />   
+        </sequential>   
+    </macrodef>   
     
  <!--
  Targets

Modified: james/server/trunk/build-tools/module-build.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/module-build.xml?view=diff&rev=537582&r1=537581&r2=537582
==============================================================================
--- james/server/trunk/build-tools/module-build.xml (original)
+++ james/server/trunk/build-tools/module-build.xml Sun May 13 05:28:36 2007
@@ -86,6 +86,11 @@
             name='${name.module}'   
             bin='${dir.build.bin}'
             lib='${dir.stage.james}'/>  
+        <CreateJavaDocs/>
+        <CreateJar 
+            name='${name.module}-javadoc'   
+            bin='${build.javadocs}'
+            lib='${dir.stage.james}'/>     
     </target>   
     
     <target 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message