blob: a0188cfaaed081181079dd4352108954b039d465 [file] [log] [blame]
lmandelfe13d292005-07-11 19:53:21 +00001<?xml version="1.0" encoding="UTF-8"?>
2
david_williamsa56a4fd2007-06-30 04:09:00 +00003<project
4 default="main"
5 basedir=".">
lmandelfe13d292005-07-11 19:53:21 +00006
david_williamsa56a4fd2007-06-30 04:09:00 +00007 <property environment="env" />
lmandelfe13d292005-07-11 19:53:21 +00008
david_williamsa56a4fd2007-06-30 04:09:00 +00009 <property file="javadoc.properties" />
10 <property
11 name="outputDir"
12 value="${basedir}" />
lmandelfe13d292005-07-11 19:53:21 +000013
david_williamsa56a4fd2007-06-30 04:09:00 +000014 <target
15 name="main"
16 depends="prephtml, javadoc, packagetoc"
17 description="Builds Plugin Javadoc" />
lmandelfe13d292005-07-11 19:53:21 +000018
david_williamsa56a4fd2007-06-30 04:09:00 +000019 <target
20 name="prephtml"
21 description="Transforms XML to HTML.">
22 <xslt
23 style="javadoc.xsl"
24 destdir=".."
25 basedir=".."
26 includes="**/overview.xml,**/package.xml"
27 excludes="**/build/*,**/@dot/**,**/bin**" />
28 </target>
lmandelfe13d292005-07-11 19:53:21 +000029
david_williamsa56a4fd2007-06-30 04:09:00 +000030 <target name="javadoc">
31 <echo message="classpath: ${env.J2SE15}" />
32 <echo message="buildDirectory: ${buildDirectory}" />
33 <echo message="JAVADOC_COMMAND: ${env.JAVADOC_COMMAND}" />
34
35 <mkdir dir="${outputDir}/reference/api/overview" />
36
37 <copy
38 todir="${outputDir}/reference/api/overview"
39 flatten="true">
40 <fileset dir="${basedir}/api-overview/overview/" />
41 <fileset
42 dir="${basedir}/.."
43 includes="*/javadoc-images/*.jpg" />
44 </copy>
45 <javadoc
46 executable="${env.JAVADOC_COMMAND}"
david_williamsa56a4fd2007-06-30 04:09:00 +000047 access="public"
48 author="false"
49 destdir="${outputDir}/reference/api"
50 doctitle="${api.title}"
51 nodeprecated="false"
52 nodeprecatedlist="false"
53 noindex="false"
54 nonavbar="false"
55 notree="false"
david_williams8c18e0e2007-07-01 07:15:47 +000056 Encoding="ISO-8859-1"
david_williamsa56a4fd2007-06-30 04:09:00 +000057 overview="${basedir}/api-overview/overview.html"
58 packagenames="${api.packages}"
59 sourcepath="${plugin.sourcefolders}"
60 splitindex="true"
61 use="true"
62 version="true"
63 breakiterator="yes"
64 verbose="false"
65 failonerror="false">
david_williams0fa12862007-08-29 12:48:47 +000066 <arg line="${env.JAVADOC_ARGS}"/>
david_williamsa56a4fd2007-06-30 04:09:00 +000067 <classpath>
68 <pathelement path="${env.J2SE15}" />
69 <fileset dir="${buildDirectory}/../eclipse/plugins">
70 <include name="**/*.jar" />
71 </fileset>
72 <dirset dir="${buildDirectory}">
73 <include name="**/@dot/**/*.class" />
74 </dirset>
75 <dirset dir="${buildDirectory}">
76 <include name="**/bin/**/*" />
77 </dirset>
78 </classpath>
79
80 </javadoc>
81 </target>
david_williams940d2772007-07-01 06:33:40 +000082
david_williamsa56a4fd2007-06-30 04:09:00 +000083 <target name="packagetoc">
84 <loadfile
85 failonerror="false"
86 property="wtp.packages"
87 srcFile="${outputDir}/reference/api/package-list">
88 <filterchain>
89 <filterreader
90 classname="org.apache.tools.ant.filters.PrefixLines">
91 <param
92 name="prefix"
93 value="&lt;/package&gt;&lt;package&gt;" />
94 </filterreader>
95 <striplinebreaks />
96 </filterchain>
97 </loadfile>
98
99 <!-- Create packages.xml file -->
100 <echo file="packages.xml">
101 &lt;packages&gt;&lt;package&gt;${wtp.packages}&lt;/package&gt;&lt;/packages&gt;
102 </echo>
103
104 <xslt
105 basedir="${basedir}"
106 in="packages.xml"
107 out="javadoctoc.xml"
108 style="javadocToc.xsl">
109 <outputproperty
110 name="method"
111 value="xml" />
112 <outputproperty
113 name="indent"
114 value="yes" />
115 </xslt>
116 </target>
lmandelfe13d292005-07-11 19:53:21 +0000117</project>