blob: bd07377204f06dd2caf645960bde57be41776c25 [file] [log] [blame]
lmandel3a4ece92005-07-11 20:05:31 +00001<?xml version="1.0" encoding="UTF-8"?>
2
david_williams940d2772007-07-01 06:33:40 +00003<project
4 default="main"
5 basedir=".">
lmandel3a4ece92005-07-11 20:05:31 +00006
david_williams940d2772007-07-01 06:33:40 +00007 <property environment="env" />
lmandel3a4ece92005-07-11 20:05:31 +00008
david_williams940d2772007-07-01 06:33:40 +00009 <property file="javadoc.properties" />
10 <property
11 name="outputDir"
12 value="${basedir}" />
lmandel3a4ece92005-07-11 20:05:31 +000013
david_williams940d2772007-07-01 06:33:40 +000014 <target
15 name="main"
16 depends="prephtml, javadoc, packagetoc"
17 description="Builds Plugin Javadoc" />
18
19 <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>
lmandel3a4ece92005-07-11 20:05:31 +000029
30 <target name="javadoc">
david_williams940d2772007-07-01 06:33:40 +000031 <echo message="classpath: ${env.J2SE15}" />
32 <echo message="buildDirectory: ${buildDirectory}" />
33 <echo message="JAVADOC_COMMAND: ${env.JAVADOC_COMMAND}" />
lmandel3a4ece92005-07-11 20:05:31 +000034
david_williams940d2772007-07-01 06:33:40 +000035 <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}"
47 maxmemory="512m"
48 access="public"
49 author="false"
50 destdir="${outputDir}/reference/api"
51 doctitle="${api.title}"
52 nodeprecated="false"
53 nodeprecatedlist="false"
54 noindex="false"
55 nonavbar="false"
56 notree="false"
david_williams8c18e0e2007-07-01 07:15:47 +000057 Encoding="ISO-8859-1"
david_williams940d2772007-07-01 06:33:40 +000058 overview="${basedir}/api-overview/overview.html"
59 packagenames="${api.packages}"
60 sourcepath="${plugin.sourcefolders}"
61 splitindex="true"
62 use="true"
63 version="true"
64 breakiterator="yes"
65 verbose="false"
66 failonerror="false">
67
68 <classpath>
69 <pathelement path="${env.J2SE15}" />
70 <fileset dir="${buildDirectory}/../eclipse/plugins">
71 <include name="**/*.jar" />
72 </fileset>
73 <dirset dir="${buildDirectory}">
74 <include name="**/@dot/**/*.class" />
75 </dirset>
76 <dirset dir="${buildDirectory}">
77 <include name="**/bin/**/*" />
78 </dirset>
79 </classpath>
80
81 </javadoc>
82 </target>
83
84 <target name="packagetoc">
85 <loadfile
86 failonerror="false"
87 property="wtp.packages"
88 srcFile="${outputDir}/reference/api/package-list">
89 <filterchain>
90 <filterreader
91 classname="org.apache.tools.ant.filters.PrefixLines">
92 <param
93 name="prefix"
94 value="&lt;/package&gt;&lt;package&gt;" />
95 </filterreader>
96 <striplinebreaks />
97 </filterchain>
98 </loadfile>
99
100 <!-- Create packages.xml file -->
101 <echo file="packages.xml">
102 &lt;packages&gt;&lt;package&gt;${wtp.packages}&lt;/package&gt;&lt;/packages&gt;
103 </echo>
104
105 <xslt
106 basedir="${basedir}"
107 in="packages.xml"
108 out="javadoctoc.xml"
109 style="javadocToc.xsl">
110 <outputproperty
111 name="method"
112 value="xml" />
113 <outputproperty
114 name="indent"
115 value="yes" />
116 </xslt>
117 </target>
lmandel3a4ece92005-07-11 20:05:31 +0000118</project>