blob: 0f2c0ffe6f872b2a2a154b66b6c050195b7a16c5 [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"
57 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">
66
67 <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>
82
83 <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>
lmandel3a4ece92005-07-11 20:05:31 +0000117</project>