diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-18 18:09:05 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-18 18:09:55 +0300 |
commit | 56a5f6853318acbd743346e0f14faa0ed7325fa4 (patch) | |
tree | ef51b705efe048c5e7a60f9c04b440c90daaf5fc /all | |
parent | 21bf33e29323d65b3e7c3b7ecdfba39db69d8e00 (diff) | |
download | vaadin-framework-56a5f6853318acbd743346e0f14faa0ed7325fa4.tar.gz vaadin-framework-56a5f6853318acbd743346e0f14faa0ed7325fa4.zip |
Create a javadoc package for all modules (#9613)
Diffstat (limited to 'all')
-rw-r--r-- | all/build.xml | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/all/build.xml b/all/build.xml index 4281a63b2f..e09b7a55b7 100644 --- a/all/build.xml +++ b/all/build.xml @@ -10,9 +10,16 @@ <!-- global properties --> <property name="module.name" value="vaadin-all" /> <property name="result.dir" value="result" /> + <property name="javadoc.jar" location="${result.dir}/vaadin-all-${vaadin.version}-javadoc.jar" /> <property name="temp.dir" location="${result.dir}/temp" /> + <property name="temp.deps.dir" value="${temp.dir}/lib" /> + <property name="javadoc.temp.dir" location="${result.dir}/javadoc-temp" /> <property name="zip.file" location="${result.dir}/lib/${module.name}-${vaadin.version}.zip" /> + <path id="classpath.javadoc"> + <fileset dir="${temp.deps.dir}" includes="*.jar"> + </fileset> + </path> <target name="fetch.module.and.dependencies"> <fail unless="module" message="No 'module' parameter given" /> @@ -22,11 +29,44 @@ </copy> </target> - <target name="zip"> + <target name="unzip.to.javadoctemp"> + <property name="file" location="${temp.dir}/vaadin-${module}-${vaadin.version}.jar" /> + <unzip src="${file}" dest="${javadoc.temp.dir}" /> + </target> + + <target name="javadoc"> + <!-- Unpack all source files to javadoc.temp.dir--> + <antcontrib:foreach list="${modules.to.publish.to.maven}" target="unzip.to.javadoctemp" param="module" /> + + <property name="javadoc.dir" location="${result.dir}/javadoc" /> + <property name="title" value="Vaadin" /> + <javadoc destdir="${javadoc.dir}" author="true" version="true" use="true" windowtitle="${title}" encoding="utf-8"> + <packageset dir="${javadoc.temp.dir}"> + <!-- TODO Javadoc throws ClassCastException if this is included (#9660)--> + <exclude name="com/google/gwt/uibinder/elementparsers" /> + </packageset> + <doctitle><h1>${title}</h1></doctitle> + <!-- <header><![CDATA[<script type="text/javascript" src=".html-style/style.js"></script>]]></header> --> + <bottom>${javadoc.bottom}</bottom> + <link offline="true" href="http://docs.oracle.com/javase/6/docs/api/" packagelistLoc="build/javadoc/j2se-1.6.0" /> + <link offline="true" href="http://java.sun.com/j2ee/1.4/docs/api/" packagelistLoc="build/javadoc/j2ee-1.4" /> + <classpath refid="classpath.javadoc" /> + </javadoc> + + <!-- Create a javadoc jar --> + <jar file="${javadoc.jar}" compress="true"> + <fileset dir="${javadoc.dir}" /> + <fileset refid="common.files.for.all.jars" /> + </jar> + + + </target> + + <target name="zip" depends="javadoc"> <delete dir="${temp.dir}" /> <antcontrib:foreach list="${modules.to.publish.to.maven}" target="fetch.module.and.dependencies" param="module" /> <!-- All jars are now in temp.dir. Still need to separate vaadin and deps --> - <move todir="${temp.dir}/lib"> + <move todir="${temp.deps.dir}"> <fileset dir="${temp.dir}"> <exclude name="vaadin-*-${vaadin.version}.*" /> <exclude name="vaadin-*-${vaadin.version}-*.*" /> @@ -48,8 +88,9 @@ </fileset> <fileset refid="common.files.for.all.jars" /> <fileset dir="${result.dir}/.."> - <include name="README.TXT"/> + <include name="README.TXT" /> </fileset> + <fileset file="${javadoc.jar}" /> </zip> </target> |