blob: fbfa0d893921b2e46630c1520be5009aed746c22 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project default="main" basedir=".">
<property file="javadoc.properties" />
<property name="outputDir" value="${basedir}"/>
<target name="main" depends="prephtml, javadoc, packagetoc" description="Builds Plugin Javadoc" />
<target name="prephtml" description="Transforms XML to HTML.">
<xslt style="javadoc.xsl"
destdir=".."
basedir=".."
includes="**/overview.xml,**/package.xml"
excludes="**/build/*,**/@dot/**,**/bin**"
/>
</target>
<target name="javadoc">
<echo message="========= ${eclipse.home}"/>
<echo message="Classpath: ${classpath}" />
<mkdir dir="${outputDir}/reference/api/overview" />
<copy todir="${outputDir}/reference/api/overview" flatten="true" >
<fileset dir="${basedir}/api-overview/overview/"/>
<fileset dir="${basedir}/.." includes="*/javadoc-images/*.jpg"/>
</copy>
<javadoc
access="public"
author="false"
classpath="${classpath}"
destdir="${outputDir}/reference/api"
doctitle="${api.title}"
nodeprecated="false"
nodeprecatedlist="false"
noindex="false"
nonavbar="false"
notree="false"
overview="${basedir}/api-overview/overview.html"
packagenames="${api.packages}"
sourcepath="${plugin.sourcefolders}"
splitindex="true"
use="true"
version="true"
breakiterator="yes"
verbose="false"
failonerror="false"
/>
</target>
<target name="packagetoc">
<loadfile
failonerror="false"
property="wtp.packages"
srcFile="${outputDir}/reference/api/package-list">
<filterchain>
<filterreader classname="org.apache.tools.ant.filters.PrefixLines">
<param name="prefix" value="&lt;/package&gt;&lt;package&gt;"/>
</filterreader>
<striplinebreaks/>
</filterchain>
</loadfile>
<!-- Create packages.xml file -->
<echo file="packages.xml">&lt;packages&gt;&lt;package&gt;${wtp.packages}&lt;/package&gt;&lt;/packages&gt;</echo>
<xslt basedir="${basedir}" in="packages.xml" out="javadoctoc.xml" style="javadocToc.xsl">
<outputproperty name="method" value="xml"/>
<outputproperty name="indent" value="yes"/>
</xslt>
</target>
</project>