ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r954778 - /ant/antlibs/common/trunk/build.xml
Date Tue, 15 Jun 2010 09:18:55 GMT
Author: bodewig
Date: Tue Jun 15 09:18:55 2010
New Revision: 954778

URL: http://svn.apache.org/viewvc?rev=954778&view=rev
Log:
create javadocs and a -javadoc.jar

Modified:
    ant/antlibs/common/trunk/build.xml

Modified: ant/antlibs/common/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/common/trunk/build.xml?rev=954778&r1=954777&r2=954778&view=diff
==============================================================================
--- ant/antlibs/common/trunk/build.xml (original)
+++ ant/antlibs/common/trunk/build.xml Tue Jun 15 09:18:55 2010
@@ -36,6 +36,7 @@
     <property name="build.lib" value="${build}/lib"/>
     <property name="build.javarepository"
               value="${build}/java-repository"/>
+    <property name="build.javadoc" value="${build}/javadoc"/>
     <property name="src.junit" location="src/tests/junit"/>
     <property name="src.antunit" location="src/tests/antunit"/>
     
@@ -233,6 +234,30 @@
     <delete dir="${src.dist.dir}"/>
   </target>
 
+  <target name="javadoc_check">
+    <uptodate property="javadoc.notrequired"
+              targetfile="${build.javadoc}/package-list">
+      <srcfiles dir="src/main" includes="**/*.java,**/*.html"/>
+    </uptodate>
+  </target>
+
+  <target name="javadoc" depends="setup-properties, javadoc_check"
+          description="--> creates the API documentation"
+          unless="javadoc.notrequired">
+    <mkdir dir="${build.javadoc}"/>
+    <javadoc useexternalfile="yes"
+             maxmemory="1000M"	
+             destdir="${build.javadoc}"
+             version="true"
+             locale="en"
+             windowtitle="${artifact.name} API"
+             doctitle="${artifact.name}"
+             failonerror="true"
+             verbose="false">
+      <packageset dir="src/main"/>
+    </javadoc>
+  </target>
+
   <!--copy the target to the destination. Only allowed if the tests pass!-->
 
   <target name="install" depends="test">
@@ -280,7 +305,7 @@
     </antcall>
   </target>
 
-  <target name="bin-dist" depends="checksum-target-jar,m2-pom,ivy.xml">
+  <target name="bin-dist" depends="checksum-target-jar,m2-pom,ivy.xml,javadoc">
     <mkdir dir="${bin.dist.dir}"/>
 
     <copy todir="${bin.dist.dir}">
@@ -299,6 +324,9 @@
       <fileset file="${jarname}*"/>
       <fileset file="${target.pom}"/>
     </copy>
+    <copy todir="${bin.dist.dir}/javadoc">
+      <fileset dir="${build.javadoc}"/>
+    </copy>
     <copy todir="${bin.dist.dir}/" includeemptydirs="false">
       <fileset dir="src">
         <include name="etc/"/>
@@ -447,6 +475,11 @@
       <metainf file="NOTICE"/>
       <metainf file="${common.basedir}/LICENSE"/>
     </jar>
+    <jar destfile="${upload.dir}/${artifact.stub}-javadoc.jar">
+      <fileset dir="${build.javadoc}"/>
+      <metainf file="NOTICE"/>
+      <metainf file="${common.basedir}/LICENSE"/>
+    </jar>
   </target>
 
   <target name="check-sigs" depends="prepare-upload">



Mime
View raw message