[pkg-java] r13129 - in trunk/maven-ant-helper: . debian

Ludovic Claude ludovicc-guest at alioth.debian.org
Thu Dec 2 22:33:25 UTC 2010


Author: ludovicc-guest
Date: 2010-12-02 22:33:25 +0000 (Thu, 02 Dec 2010)
New Revision: 13129

Modified:
   trunk/maven-ant-helper/debian/changelog
   trunk/maven-ant-helper/maven-build.xml
Log:
Add a javadoc-jar target which generates a jar file containing the javadoc
generate javadoc and its jar if generate.javadoc property is set

Modified: trunk/maven-ant-helper/debian/changelog
===================================================================
--- trunk/maven-ant-helper/debian/changelog	2010-12-02 22:18:15 UTC (rev 13128)
+++ trunk/maven-ant-helper/debian/changelog	2010-12-02 22:33:25 UTC (rev 13129)
@@ -1,7 +1,8 @@
-maven-ant-helper (7.1) UNRELEASED; urgency=low
+maven-ant-helper (7.1) experimental; urgency=low
 
+  * Add a javadoc-jar target which generates a jar file containing the javadoc
   * Add a default build-all target which can run the build and optionally
-    generate javadoc if generate.javadoc property is set
+    generate javadoc and its jar if generate.javadoc property is set
 
  -- Ludovic Claude <ludovic.claude at laposte.net>  Mon, 22 Nov 2010 00:14:25 +0100
 

Modified: trunk/maven-ant-helper/maven-build.xml
===================================================================
--- trunk/maven-ant-helper/maven-build.xml	2010-12-02 22:18:15 UTC (rev 13128)
+++ trunk/maven-ant-helper/maven-build.xml	2010-12-02 22:33:25 UTC (rev 13129)
@@ -404,7 +404,7 @@
         <c:if>
             <isset property="javadoc.generate" />
             <then>
-                <antcall target="javadoc" />
+                <antcall target="javadoc-jar" />
             </then> 
         </c:if>
     </target>
@@ -448,4 +448,18 @@
             <link href="file:///usr/share/doc/${dependency15}/api" />
         </javadoc>
     </target>
+
+    <target name="javadoc-jar" depends="javadoc">
+        <echoxml file="${build.directory}/${artifactId}.javadoc.pom">
+            <project>
+                <modelVersion>4.0.0</modelVersion>
+                <groupId>${groupId}</groupId>
+                <artifactId>${artifactId}</artifactId>
+                <version>${version}</version>
+            </project>
+        </echoxml>
+        <jar jarfile="${build.directory}/${artifactId}.javadoc.jar"
+            basedir="${javadoc.dir}" />
+    </target>
+
 </project>




More information about the pkg-java-commits mailing list