blob: cd4d22020a6e12754a6ff7d60b0bba9fa8618062 [file] [log] [blame]
lmandel3a4ece92005-07-11 20:05:31 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<project default="main" basedir=".">
4
5 <property file="javadoc.properties" />
lmandel93ef9f62005-11-22 07:12:48 +00006 <property name="outputDir" value="${basedir}"/>
lmandel3a4ece92005-07-11 20:05:31 +00007
lmandel0e9807b2005-12-07 06:38:29 +00008 <target name="main" depends="prephtml, javadoc, packagetoc" description="Builds Plugin Javadoc" />
lmandel3a4ece92005-07-11 20:05:31 +00009
10 <target name="prephtml" description="Transforms XML to HTML.">
11 <xslt style="javadoc.xsl"
12 destdir=".."
13 basedir=".."
14 includes="**/overview.xml,**/package.xml"
15 excludes="**/build/*,**/@dot/**"
16 />
17 </target>
18
19 <target name="javadoc">
20<echo message="========= ${eclipse.home}"/>
21 <mkdir dir="${outputDir}/reference/api/overview" />
22
23 <copy todir="${outputDir}/reference/api/overview" flatten="true" >
24 <fileset dir="${basedir}/api-overview/overview/"/>
25 <fileset dir="${basedir}/.." includes="*/javadoc-images/*.jpg"/>
26 </copy>
27 <javadoc
28 access="public"
29 author="false"
30 classpath="${classpath}"
31 destdir="${outputDir}/reference/api"
32 doctitle="${api.title}"
33 nodeprecated="false"
34 nodeprecatedlist="false"
35 noindex="false"
36 nonavbar="false"
37 notree="false"
38 overview="${basedir}/api-overview/overview.html"
39 packagenames="${api.packages}"
40 sourcepath="${plugin.sourcefolders}"
41 splitindex="true"
lmandel3a4ece92005-07-11 20:05:31 +000042 use="true"
43 version="true"
44 breakiterator="yes"
45 verbose="false"
46 failonerror="false"
47 />
lmandel3a4ece92005-07-11 20:05:31 +000048 </target>
lmandel0e9807b2005-12-07 06:38:29 +000049
50 <target name="packagetoc">
51 <loadfile
52 property="wtp.packages"
53 srcFile="${outputDir}/reference/api/package-list">
54 <filterchain>
55 <filterreader classname="org.apache.tools.ant.filters.PrefixLines">
56 <param name="prefix" value="&lt;/package&gt;&lt;package&gt;"/>
57 </filterreader>
58 <striplinebreaks/>
59 </filterchain>
60 </loadfile>
61
62 <!-- Create packages.xml file -->
63 <echo file="packages.xml">&lt;packages&gt;&lt;package&gt;${wtp.packages}&lt;/package&gt;&lt;/packages&gt;</echo>
64
65 <xslt basedir="${basedir}" in="packages.xml" out="javadoctoc.xml" style="javadocToc.xsl">
66 <outputproperty name="method" value="xml"/>
67 <outputproperty name="indent" value="yes"/>
68 </xslt>
69 </target>
lmandel3a4ece92005-07-11 20:05:31 +000070</project>