lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 2 | <project name="Build Extension Point Documentation" default="createExtDocs" basedir="."> |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 3 | |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 4 | <property file="buildExtDocs.properties"/> |
| 5 | <property name="outputDir" value="${basedir}${file.separator}reference${file.separator}extension-points"/> |
| 6 | <property name="xmlOutputDir" value="${outputDir}${file.separator}xml${file.separator}"/> |
| 7 | <property name="commonOutputDir" value="${outputDir}${file.separator}common${file.separator}"/> |
| 8 | <property name="rdbOutputDir" value="${outputDir}${file.separator}rdb${file.separator}"/> |
| 9 | <property name="serverOutputDir" value="${outputDir}${file.separator}server${file.separator}"/> |
| 10 | <property name="webOutputDir" value="${outputDir}${file.separator}web${file.separator}"/> |
| 11 | <property name="wsOutputDir" value="${outputDir}${file.separator}ws${file.separator}"/> |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 12 | |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 13 | <target name="createExtDocs" depends="buildExtDocs, createDocListings"/> |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 14 | |
ndai | 5c6f24d | 2006-10-23 09:30:51 +0000 | [diff] [blame] | 15 | <target name="buildExtDocs" depends="buildXMLExtDocs, buildCommonExtDocs, buildServerExtDocs, buildWebExtDocs, buildWSExtDocs"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 16 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 17 | <target name="buildXMLExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 18 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.sse.core/plugin.xml" destination="${xmlOutputDir}" /> |
| 19 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xml.core/plugin.xml" destination="${xmlOutputDir}" /> |
| 20 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.sse.ui/plugin.xml" destination="${xmlOutputDir}" /> |
| 21 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xml.ui/plugin.xml" destination="${xmlOutputDir}" /> |
| 22 | |
| 23 | <!-- Get the list of extension doc files. --> |
| 24 | <fileset dir="${xmlOutputDir}" casesensitive="yes" id="ext-docs-list-xml"> |
| 25 | <include name="*.html"/> |
| 26 | </fileset> |
| 27 | |
| 28 | <!-- Convert the list to an XML representation. --> |
| 29 | <pathconvert property="ext-doc-xml" refid="ext-docs-list-xml" pathsep="</file><file>"> |
| 30 | <map from="${xmlOutputDir}" to=""/> |
| 31 | </pathconvert> |
| 32 | <echo file="xmlextdocs.xml"><files component="xml"><file>${ext-doc-xml}</file></files></echo> |
| 33 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 34 | </target> |
| 35 | |
| 36 | <target name="buildCommonExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 37 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.command.env/plugin.xml" destination="${commonOutputDir}" /> |
| 38 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.emf/plugin.xml" destination="${commonOutputDir}" /> |
| 39 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.frameworks/plugin.xml" destination="${commonOutputDir}" /> |
| 40 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.modulecore/plugin.xml" destination="${commonOutputDir}" /> |
| 41 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.project.facet.core/plugin.xml" destination="${commonOutputDir}" /> |
| 42 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.uriresolver/plugin.xml" destination="${commonOutputDir}" /> |
| 43 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.cache/plugin.xml" destination="${commonOutputDir}" /> |
| 44 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.validation/plugin.xml" destination="${commonOutputDir}" /> |
| 45 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.command.env.ui/plugin.xml" destination="${commonOutputDir}" /> |
| 46 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.frameworks.ui/plugin.xml" destination="${commonOutputDir}" /> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 47 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.project.facet.ui/plugin.xml" destination="${commonOutputDir}" /> |
| 48 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.snippets/plugin.xml" destination="${commonOutputDir}" /> |
| 49 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.ui/plugin.xml" destination="${commonOutputDir}" /> |
| 50 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.ui.properties/plugin.xml" destination="${commonOutputDir}" /> |
| 51 | |
| 52 | <!-- Get the list of extension doc files. --> |
| 53 | <fileset dir="${commonOutputDir}" casesensitive="yes" id="ext-docs-list-common"> |
| 54 | <include name="*.html"/> |
| 55 | </fileset> |
| 56 | |
| 57 | <!-- Convert the list to an XML representation. --> |
| 58 | <pathconvert property="ext-doc-common" refid="ext-docs-list-common" pathsep="</file><file>"> |
| 59 | <map from="${commonOutputDir}" to=""/> |
| 60 | </pathconvert> |
| 61 | <echo file="commonextdocs.xml"><files component="common"><file>${ext-doc-common}</file></files></echo> |
| 62 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 63 | </target> |
| 64 | |
ndai | 5c6f24d | 2006-10-23 09:30:51 +0000 | [diff] [blame] | 65 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 66 | |
| 67 | <target name="buildServerExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 68 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.monitor.core/plugin.xml" destination="${serverOutputDir}" /> |
| 69 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.server.core/plugin.xml" destination="${serverOutputDir}" /> |
| 70 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.monitor.ui/plugin.xml" destination="${serverOutputDir}" /> |
| 71 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.server.ui/plugin.xml" destination="${serverOutputDir}" /> |
| 72 | |
| 73 | <!-- Get the list of extension doc files. --> |
| 74 | <fileset dir="${serverOutputDir}" casesensitive="yes" id="ext-docs-list-server"> |
| 75 | <include name="*.html"/> |
| 76 | </fileset> |
| 77 | |
| 78 | <!-- Convert the list to an XML representation. --> |
| 79 | <pathconvert property="ext-doc-server" refid="ext-docs-list-server" pathsep="</file><file>"> |
| 80 | <map from="${serverOutputDir}" to=""/> |
| 81 | </pathconvert> |
| 82 | <echo file="serverextdocs.xml"><files component="server"><file>${ext-doc-server}</file></files></echo> |
| 83 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 84 | </target> |
| 85 | |
| 86 | <target name="buildWebExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 87 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.emfworkbench.integration/plugin.xml" destination="${webOutputDir}" /> |
| 88 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.html.ui/plugin.xml" destination="${webOutputDir}" /> |
| 89 | |
| 90 | <!-- Get the list of extension doc files. --> |
| 91 | <fileset dir="${webOutputDir}" casesensitive="yes" id="ext-docs-list-web"> |
| 92 | <include name="*.html"/> |
| 93 | </fileset> |
| 94 | |
| 95 | <!-- Convert the list to an XML representation. --> |
| 96 | <pathconvert property="ext-doc-web" refid="ext-docs-list-web" pathsep="</file><file>"> |
| 97 | <map from="${webOutputDir}" to=""/> |
| 98 | </pathconvert> |
| 99 | <echo file="webextdocs.xml"><files component="web"><file>${ext-doc-web}</file></files></echo> |
| 100 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 101 | </target> |
| 102 | |
| 103 | <target name="buildWSExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 104 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.ws/plugin.xml" destination="${wsOutputDir}" /> |
| 105 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl/plugin.xml" destination="${wsOutputDir}" /> |
| 106 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl.ui/plugin.xml" destination="${wsOutputDir}" /> |
| 107 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl.validation/plugin.xml" destination="${wsOutputDir}" /> |
| 108 | |
| 109 | <!-- Get the list of extension doc files. --> |
| 110 | <fileset dir="${wsOutputDir}" casesensitive="yes" id="ext-docs-list-ws"> |
| 111 | <include name="*.html"/> |
| 112 | </fileset> |
| 113 | |
| 114 | <!-- Convert the list to an XML representation. --> |
| 115 | <pathconvert property="ext-doc-ws" refid="ext-docs-list-ws" pathsep="</file><file>"> |
| 116 | <map from="${wsOutputDir}" to=""/> |
| 117 | </pathconvert> |
| 118 | <echo file="wsextdocs.xml"><files component="ws"><file>${ext-doc-ws}</file></files></echo> |
| 119 | |
| 120 | </target> |
| 121 | |
| 122 | <target name="createDocListings"> |
| 123 | <!-- Create the overview document. --> |
| 124 | <xslt basedir="${basedir}" in="extDocListings.xml" out="${outputDir}${file.separator}index.html" style="extDocOverview.xsl"> |
| 125 | <param name="title" expression="${title}"/> |
| 126 | <param name="header" expression="${header}"/> |
| 127 | <param name="overview" expression="${overview}"/> |
lmandel | 8b44e12 | 2006-05-01 19:30:10 +0000 | [diff] [blame] | 128 | <param name="listed-ext-points" expression="${listed-ext-points}"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 129 | </xslt> |
| 130 | |
| 131 | <!-- Create the extention point toc. --> |
| 132 | <xslt basedir="${basedir}" in="extDocListings.xml" out="topics_ExtPoint_Reference.xml" style="extDocToc.xsl"> |
lmandel | 8b44e12 | 2006-05-01 19:30:10 +0000 | [diff] [blame] | 133 | <param name="listed-ext-points" expression="${listed-ext-points}"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 134 | <outputproperty name="method" value="xml"/> |
lmandel | e5e182d | 2005-12-08 01:24:32 +0000 | [diff] [blame] | 135 | <outputproperty name="indent" value="yes"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 136 | </xslt> |
| 137 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 138 | </target> |
| 139 | </project> |