| <?xml version="1.0" encoding="UTF-8"?> |
| <project name="Build Extension Point Documentation" default="createExtDocs" basedir="."> |
| |
| <property file="buildExtDocs.properties"/> |
| <property name="outputDir" value="${basedir}${file.separator}reference${file.separator}extension-points"/> |
| <property name="xmlOutputDir" value="${outputDir}${file.separator}xml${file.separator}"/> |
| <property name="commonOutputDir" value="${outputDir}${file.separator}common${file.separator}"/> |
| <property name="rdbOutputDir" value="${outputDir}${file.separator}rdb${file.separator}"/> |
| <property name="serverOutputDir" value="${outputDir}${file.separator}server${file.separator}"/> |
| <property name="webOutputDir" value="${outputDir}${file.separator}web${file.separator}"/> |
| <property name="wsOutputDir" value="${outputDir}${file.separator}ws${file.separator}"/> |
| |
| <target name="createExtDocs" depends="buildExtDocs, createDocListings"/> |
| |
| <target name="buildExtDocs" depends="buildXMLExtDocs, buildCommonExtDocs, buildRDBExtDocs, buildServerExtDocs, buildWebExtDocs, buildWSExtDocs"/> |
| |
| <target name="buildXMLExtDocs"> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.sse.core/plugin.xml" destination="${xmlOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xml.core/plugin.xml" destination="${xmlOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.sse.ui/plugin.xml" destination="${xmlOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xml.ui/plugin.xml" destination="${xmlOutputDir}" /> |
| |
| <!-- Get the list of extension doc files. --> |
| <fileset dir="${xmlOutputDir}" casesensitive="yes" id="ext-docs-list-xml"> |
| <include name="*.html"/> |
| </fileset> |
| |
| <!-- Convert the list to an XML representation. --> |
| <pathconvert property="ext-doc-xml" refid="ext-docs-list-xml" pathsep="</file><file>"> |
| <map from="${xmlOutputDir}" to=""/> |
| </pathconvert> |
| <echo file="xmlextdocs.xml"><files component="xml"><file>${ext-doc-xml}</file></files></echo> |
| |
| </target> |
| |
| <target name="buildCommonExtDocs"> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.command.env/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.emf/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.frameworks/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.modulecore/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.project.facet.core/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.uriresolver/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.cache/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.validation/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.command.env.ui/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.frameworks.ui/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.navigator.views/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.navigator.workbench/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.project.facet.ui/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.snippets/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.ui/plugin.xml" destination="${commonOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.ui.properties/plugin.xml" destination="${commonOutputDir}" /> |
| |
| <!-- Get the list of extension doc files. --> |
| <fileset dir="${commonOutputDir}" casesensitive="yes" id="ext-docs-list-common"> |
| <include name="*.html"/> |
| </fileset> |
| |
| <!-- Convert the list to an XML representation. --> |
| <pathconvert property="ext-doc-common" refid="ext-docs-list-common" pathsep="</file><file>"> |
| <map from="${commonOutputDir}" to=""/> |
| </pathconvert> |
| <echo file="commonextdocs.xml"><files component="common"><file>${ext-doc-common}</file></files></echo> |
| |
| </target> |
| |
| <target name="buildRDBExtDocs"> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.core/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.data.core/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.connection.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.core.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.data.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.outputview/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.server.extensions/plugin.xml" destination="${rdbOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.server.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| |
| <!-- Get the list of extension doc files. --> |
| <fileset dir="${rdbOutputDir}" casesensitive="yes" id="ext-docs-list-rdb"> |
| <include name="*.html"/> |
| </fileset> |
| |
| <!-- Convert the list to an XML representation. --> |
| <pathconvert property="ext-doc-rdb" refid="ext-docs-list-rdb" pathsep="</file><file>"> |
| <map from="${rdbOutputDir}" to=""/> |
| </pathconvert> |
| <echo file="rdbextdocs.xml"><files component="rdb"><file>${ext-doc-rdb}</file></files></echo> |
| |
| </target> |
| |
| <target name="buildServerExtDocs"> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.monitor.core/plugin.xml" destination="${serverOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.server.core/plugin.xml" destination="${serverOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.monitor.ui/plugin.xml" destination="${serverOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.server.ui/plugin.xml" destination="${serverOutputDir}" /> |
| |
| <!-- Get the list of extension doc files. --> |
| <fileset dir="${serverOutputDir}" casesensitive="yes" id="ext-docs-list-server"> |
| <include name="*.html"/> |
| </fileset> |
| |
| <!-- Convert the list to an XML representation. --> |
| <pathconvert property="ext-doc-server" refid="ext-docs-list-server" pathsep="</file><file>"> |
| <map from="${serverOutputDir}" to=""/> |
| </pathconvert> |
| <echo file="serverextdocs.xml"><files component="server"><file>${ext-doc-server}</file></files></echo> |
| |
| </target> |
| |
| <target name="buildWebExtDocs"> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.emfworkbench.integration/plugin.xml" destination="${webOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.html.ui/plugin.xml" destination="${webOutputDir}" /> |
| |
| <!-- Get the list of extension doc files. --> |
| <fileset dir="${webOutputDir}" casesensitive="yes" id="ext-docs-list-web"> |
| <include name="*.html"/> |
| </fileset> |
| |
| <!-- Convert the list to an XML representation. --> |
| <pathconvert property="ext-doc-web" refid="ext-docs-list-web" pathsep="</file><file>"> |
| <map from="${webOutputDir}" to=""/> |
| </pathconvert> |
| <echo file="webextdocs.xml"><files component="web"><file>${ext-doc-web}</file></files></echo> |
| |
| </target> |
| |
| <target name="buildWSExtDocs"> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.ws/plugin.xml" destination="${wsOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl/plugin.xml" destination="${wsOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl.ui/plugin.xml" destination="${wsOutputDir}" /> |
| <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl.validation/plugin.xml" destination="${wsOutputDir}" /> |
| |
| <!-- Get the list of extension doc files. --> |
| <fileset dir="${wsOutputDir}" casesensitive="yes" id="ext-docs-list-ws"> |
| <include name="*.html"/> |
| </fileset> |
| |
| <!-- Convert the list to an XML representation. --> |
| <pathconvert property="ext-doc-ws" refid="ext-docs-list-ws" pathsep="</file><file>"> |
| <map from="${wsOutputDir}" to=""/> |
| </pathconvert> |
| <echo file="wsextdocs.xml"><files component="ws"><file>${ext-doc-ws}</file></files></echo> |
| |
| </target> |
| |
| <target name="createDocListings"> |
| <!-- Create the overview document. --> |
| <xslt basedir="${basedir}" in="extDocListings.xml" out="${outputDir}${file.separator}index.html" style="extDocOverview.xsl"> |
| <param name="title" expression="${title}"/> |
| <param name="header" expression="${header}"/> |
| <param name="overview" expression="${overview}"/> |
| <param name="internal-ext-points" expression="${internal-ext-points}"/> |
| </xslt> |
| |
| <!-- Create the extention point toc. --> |
| <xslt basedir="${basedir}" in="extDocListings.xml" out="topics_ExtPoint_Reference.xml" style="extDocToc.xsl"> |
| <param name="internal-ext-points" expression="${internal-ext-points}"/> |
| <outputproperty name="method" value="xml"/> |
| <outputproperty name="indent" value="yes"/> |
| </xslt> |
| |
| </target> |
| </project> |