commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r479249 - /jakarta/commons/proper/dbcp/trunk/maven.xml
Date Sun, 26 Nov 2006 01:04:23 GMT
Author: psteitz
Date: Sat Nov 25 17:04:22 2006
New Revision: 479249

URL: http://svn.apache.org/viewvc?view=rev&rev=479249
Log:
Made ant regenerate javadoc so jocl is included.

Modified:
    jakarta/commons/proper/dbcp/trunk/maven.xml

Modified: jakarta/commons/proper/dbcp/trunk/maven.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbcp/trunk/maven.xml?view=diff&rev=479249&r1=479248&r2=479249
==============================================================================
--- jakarta/commons/proper/dbcp/trunk/maven.xml (original)
+++ jakarta/commons/proper/dbcp/trunk/maven.xml Sat Nov 25 17:04:22 2006
@@ -83,4 +83,42 @@
     <ant:checksum file="${distDir}/${finalName}-src.zip"/>
   </postGoal>
   
+  <!-- Use ant to regen javadoc, since maven refuses to include more than
+       one package, and jocl is not a subpackage of dbcp. -->
+  <postGoal name="site">
+    <j:set var="destDir" value="${pom.getPluginContext('maven-javadoc-plugin').getVariable('maven.javadoc.destdir')}"/>
+    <j:set var="libDir" value="${user.home}/.maven/repository"/>
+    <ant:path id="build.classpath">
+      <ant:pathelement 
+        location="${libDir}/commons-pool/jars/commons-pool-1.3.jar">
+      </ant:pathelement>
+      <ant:pathelement 
+        location="${libdir}/xerces/jars/xercesImpl-2.8.0.jar">
+      </ant:pathelement>
+    </ant:path>
+    <ant:delete dir="${destDir}"/>
+    <ant:mkdir dir="${destDir}"/>
+    <ant:tstamp>
+      <ant:format pattern="2001-yyyy" property="year"/>
+    </ant:tstamp>
+    <ant:property name="copyright" 
+      value="Copyright &amp;copy;  The Apache Software Foundation. All Rights Reserved."/>
+    <ant:property name="title" value="${pom.name} ${pom.currentVersion} API"/>
+    <ant:javadoc use="true"  
+       destdir="${destDir}" author="true"
+       version="true"
+       protected="true"
+       sourcepath="${basedir}/src/java" 
+       windowtitle="${pom.name} ${pom.currentVersion} API"
+       doctitle="${pom.name} ${pom.currentVersion} API"
+       bottom="Copyright &amp;copy;  The Apache Software Foundation. All Rights Reserved."
+       packagenames="org.apache.commons.*">
+      <ant:classpath>
+        <ant:path refid="build.classpath"/>
+      </ant:classpath>
+      <ant:link href="http://java.sun.com/j2se/1.5.0/docs/api"/>
+      <ant:link href="http://jakarta.apache.org/commons/pool/apidocs"/>
+    </ant:javadoc>
+  </postGoal>
+   
 </project>



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


Mime
View raw message