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 | |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 15 | <target name="buildExtDocs" depends="buildXMLExtDocs, buildCommonExtDocs, buildRDBExtDocs, buildServerExtDocs, buildWebExtDocs, buildWSExtDocs"/> |
| 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 | |
| 65 | <target name="buildRDBExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 66 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.core/plugin.xml" destination="${rdbOutputDir}" /> |
| 67 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.data.core/plugin.xml" destination="${rdbOutputDir}" /> |
| 68 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.connection.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| 69 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.core.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| 70 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.data.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| 71 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.outputview/plugin.xml" destination="${rdbOutputDir}" /> |
| 72 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.server.extensions/plugin.xml" destination="${rdbOutputDir}" /> |
| 73 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.rdb.server.ui/plugin.xml" destination="${rdbOutputDir}" /> |
| 74 | |
| 75 | <!-- Get the list of extension doc files. --> |
| 76 | <fileset dir="${rdbOutputDir}" casesensitive="yes" id="ext-docs-list-rdb"> |
| 77 | <include name="*.html"/> |
| 78 | </fileset> |
| 79 | |
| 80 | <!-- Convert the list to an XML representation. --> |
| 81 | <pathconvert property="ext-doc-rdb" refid="ext-docs-list-rdb" pathsep="</file><file>"> |
| 82 | <map from="${rdbOutputDir}" to=""/> |
| 83 | </pathconvert> |
| 84 | <echo file="rdbextdocs.xml"><files component="rdb"><file>${ext-doc-rdb}</file></files></echo> |
| 85 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 86 | </target> |
| 87 | |
| 88 | <target name="buildServerExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 89 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.monitor.core/plugin.xml" destination="${serverOutputDir}" /> |
| 90 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.server.core/plugin.xml" destination="${serverOutputDir}" /> |
| 91 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.internet.monitor.ui/plugin.xml" destination="${serverOutputDir}" /> |
| 92 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.server.ui/plugin.xml" destination="${serverOutputDir}" /> |
| 93 | |
| 94 | <!-- Get the list of extension doc files. --> |
| 95 | <fileset dir="${serverOutputDir}" casesensitive="yes" id="ext-docs-list-server"> |
| 96 | <include name="*.html"/> |
| 97 | </fileset> |
| 98 | |
| 99 | <!-- Convert the list to an XML representation. --> |
| 100 | <pathconvert property="ext-doc-server" refid="ext-docs-list-server" pathsep="</file><file>"> |
| 101 | <map from="${serverOutputDir}" to=""/> |
| 102 | </pathconvert> |
| 103 | <echo file="serverextdocs.xml"><files component="server"><file>${ext-doc-server}</file></files></echo> |
| 104 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 105 | </target> |
| 106 | |
| 107 | <target name="buildWebExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 108 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.common.emfworkbench.integration/plugin.xml" destination="${webOutputDir}" /> |
| 109 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.html.ui/plugin.xml" destination="${webOutputDir}" /> |
| 110 | |
| 111 | <!-- Get the list of extension doc files. --> |
| 112 | <fileset dir="${webOutputDir}" casesensitive="yes" id="ext-docs-list-web"> |
| 113 | <include name="*.html"/> |
| 114 | </fileset> |
| 115 | |
| 116 | <!-- Convert the list to an XML representation. --> |
| 117 | <pathconvert property="ext-doc-web" refid="ext-docs-list-web" pathsep="</file><file>"> |
| 118 | <map from="${webOutputDir}" to=""/> |
| 119 | </pathconvert> |
| 120 | <echo file="webextdocs.xml"><files component="web"><file>${ext-doc-web}</file></files></echo> |
| 121 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 122 | </target> |
| 123 | |
| 124 | <target name="buildWSExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 125 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.ws/plugin.xml" destination="${wsOutputDir}" /> |
| 126 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl/plugin.xml" destination="${wsOutputDir}" /> |
| 127 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl.ui/plugin.xml" destination="${wsOutputDir}" /> |
| 128 | <pde.convertSchemaToHTML manifest="../org.eclipse.wst.wsdl.validation/plugin.xml" destination="${wsOutputDir}" /> |
| 129 | |
| 130 | <!-- Get the list of extension doc files. --> |
| 131 | <fileset dir="${wsOutputDir}" casesensitive="yes" id="ext-docs-list-ws"> |
| 132 | <include name="*.html"/> |
| 133 | </fileset> |
| 134 | |
| 135 | <!-- Convert the list to an XML representation. --> |
| 136 | <pathconvert property="ext-doc-ws" refid="ext-docs-list-ws" pathsep="</file><file>"> |
| 137 | <map from="${wsOutputDir}" to=""/> |
| 138 | </pathconvert> |
| 139 | <echo file="wsextdocs.xml"><files component="ws"><file>${ext-doc-ws}</file></files></echo> |
| 140 | |
| 141 | </target> |
| 142 | |
| 143 | <target name="createDocListings"> |
| 144 | <!-- Create the overview document. --> |
| 145 | <xslt basedir="${basedir}" in="extDocListings.xml" out="${outputDir}${file.separator}index.html" style="extDocOverview.xsl"> |
| 146 | <param name="title" expression="${title}"/> |
| 147 | <param name="header" expression="${header}"/> |
| 148 | <param name="overview" expression="${overview}"/> |
lmandel | 8b44e12 | 2006-05-01 19:30:10 +0000 | [diff] [blame^] | 149 | <param name="listed-ext-points" expression="${listed-ext-points}"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 150 | </xslt> |
| 151 | |
| 152 | <!-- Create the extention point toc. --> |
| 153 | <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^] | 154 | <param name="listed-ext-points" expression="${listed-ext-points}"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 155 | <outputproperty name="method" value="xml"/> |
lmandel | e5e182d | 2005-12-08 01:24:32 +0000 | [diff] [blame] | 156 | <outputproperty name="indent" value="yes"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 157 | </xslt> |
| 158 | |
lmandel | a6806d4 | 2005-11-22 06:50:29 +0000 | [diff] [blame] | 159 | </target> |
| 160 | </project> |