[lombok] 09/13: generate javadoc in place, rather than into tmpdirs and jars

Hans-Christoph Steiner eighthave at moszumanska.debian.org
Tue Dec 15 13:16:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

eighthave pushed a commit to branch master
in repository lombok.

commit 6de6d5b28daa5d361b94d0a63d8006a232acf767
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Mon Dec 14 15:40:28 2015 +0100

    generate javadoc in place, rather than into tmpdirs and jars
---
 debian/build.xml | 37 +++++++------------------------------
 1 file changed, 7 insertions(+), 30 deletions(-)

diff --git a/debian/build.xml b/debian/build.xml
index 09b4125..5848c40 100644
--- a/debian/build.xml
+++ b/debian/build.xml
@@ -153,16 +153,6 @@
 	<attribute name="Lombok-Version" value="${lombok.version}" />
       </manifest>
     </jar>
-    <mkdir dir="build/utils-api" />
-    <javadoc sourcepath="src/utils" defaultexcludes="yes" destdir="build/utils-api" windowtitle="Lombok Utils">
-      <classpath refid="build.path" />
-      <link href="http://download.oracle.com/javase/6/docs/api/" />
-      <header><![CDATA[<a href='https://projectlombok.org/' target='_blank'>Lombok</a> - ]]>v${lombok.version}</header>
-      <bottom><![CDATA[<i>Copyright © 2011-2015 The Project Lombok Authors, licensed under the <a href='http://www.opensource.org/licenses/mit-license.php' target='_blank'>MIT licence</a>.]]></bottom>
-    </javadoc>
-    <jar destfile="dist/lombok-utils-${lombok.version}-javadoc.jar">
-      <fileset dir="build/utils-api" />
-    </jar>
 
     <copy todir="build/lombok">
       <fileset dir="build/lombok-utils" />
@@ -179,31 +169,18 @@
 	<attribute name="Lombok-Version" value="${lombok.version}" />
       </manifest>
     </jar>
-    <javadoc sourcepath="src/core" defaultexcludes="yes" destdir="build/api" windowtitle="Lombok" Overview="${javadoc.overview.html}">
+
+    <property name="javadocbase" value="debian/liblombok-java-doc/usr/share/doc/liblombok-java-doc/api"/>
+    <mkdir dir="${javadocbase}" />
+    <javadoc defaultexcludes="yes" destdir="${javadocbase}" windowtitle="Lombok" Overview="${javadoc.overview.html}">
       <classpath refid="build.path" />
       <classpath location="build/lombok" />
       <link href="http://download.oracle.com/javase/6/docs/api/" />
-      <link href="http://www.slf4j.org/api/" />
-      <link href="http://commons.apache.org/logging/apidocs/" />
-      <link href="http://logging.apache.org/log4j/1.2/apidocs/" />
       <header><![CDATA[<a href='https://projectlombok.org/' target='_blank'>Lombok</a> - ]]>v${lombok.version}</header>
-      <bottom><![CDATA[<i>Copyright © 2009-2015 The Project Lombok Authors, licensed under the <a href='http://www.opensource.org/licenses/mit-license.php' target='_blank'>MIT licence</a>.]]></bottom>
+      <bottom><![CDATA[<i>Copyright © 2011-2015 The Project Lombok Authors, licensed under the <a href='http://www.opensource.org/licenses/mit-license.php' target='_blank'>MIT licence</a>.]]></bottom>
+      <fileset dir="src/utils" />
+      <fileset dir="src/core" />
     </javadoc>
-    <mkdir dir="doc/api" />
-    <copy todir="doc/api">
-      <fileset dir="build/api" includes="**/*.html" />
-      <filterchain>
-	<linecontainsregexp negate="true">
-	  <regexp pattern="(Generated by javadoc)|(.META NAME=.date.)" />
-	</linecontainsregexp>
-      </filterchain>
-    </copy>
-    <copy todir="doc/api">
-      <fileset dir="build/api" excludes="**/*.html" />
-    </copy>
-    <jar destfile="dist/lombok-${lombok.version}-javadoc.jar">
-      <fileset dir="doc/api" />
-    </jar>
     
   </target>
 </project>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/lombok.git



More information about the pkg-java-commits mailing list