blob: 5ca5963cad4d570bb4d6761dc895a5387f741c95 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2008, 2019 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<!--overview="${basedir}/html/api_reference/erview/overview.html"-->
<project default="main" basedir=".">
<property file="javadoc.properties" />
<property name="outputDir" value="${basedir}"/>
<property name="eclipse.home" value="${basedir}/.."/>
<target name="main" depends="clean, prephtml, javadoc, packagetoc" description="Builds Plugin Javadoc" />
<target name="clean">
<delete>
<fileset dir="${outputDir}/html/api_reference/" >
<include name="**/*.html"/>
</fileset>
</delete>
</target>
<target name="prephtml" description="Transforms XML to HTML.">
<xslt style="javadoc.xsl"
destdir=".."
basedir=".."
includes="**/overview.xml,**/package.xml"
excludes="**/build/*,**/@dot/**"
/>
</target>
<target name="javadoc">
<echo message="========= ${eclipse.home}"/>
<mkdir dir="${outputDir}/api-overview/overview" />
<copy todir="${outputDir}/api-overview/overview" flatten="true" >
<fileset dir="${basedir}/api-overview/overview/"/>
<fileset dir="${basedir}/.." includes="*/javadoc-images/*.jpg"/>
</copy>
<javadoc
access="public"
additionalparam="-breakiterator -tag model:X -tag generated:X -tag ordered:X"
author="false"
classpath="${classpath}"
destdir="${outputDir}/html/api_reference"
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"
>
<tag name="ignore" description="ignore" enabled="false"/>
<tag name="generated" description="ignore" enabled="false"/>
<tag name="model" description="ignore" enabled="false"/>
<tag name="modifiable" description="ignore" enabled="false"/>
<tag name="extends" description="ignore" enabled="false"/>
<tag name="implements" description="ignore" enabled="false"/>
<tag name="ordered" description="ignore" enabled="false"/>
</javadoc>
</target>
<target name="packagetoc">
<loadfile
failonerror="false"
property="jsf.packages"
srcFile="${outputDir}/html/api_reference/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;${jsf.packages}&lt;/package&gt;&lt;/packages&gt;</echo>
<xslt basedir="${outputdir}" in="packages.xml" out="javadoctoc.xml" style="javadocToc.xsl">
<outputproperty name="method" value="xml"/>
<outputproperty name="indent" value="yes"/>
</xslt>
</target>
</project>