lmandel | 93ef9f6 | 2005-11-22 07:12:48 +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 | 93ef9f6 | 2005-11-22 07:12:48 +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="entOutputDir" value="${outputDir}${file.separator}enterprise${file.separator}"/> |
| 7 | <property name="serverOutputDir" value="${outputDir}${file.separator}server${file.separator}"/> |
| 8 | <property name="webOutputDir" value="${outputDir}${file.separator}web${file.separator}"/> |
lmandel | 93ef9f6 | 2005-11-22 07:12:48 +0000 | [diff] [blame] | 9 | |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 10 | <target name="createExtDocs" depends="buildExtDocs, createDocListings"/> |
| 11 | |
lmandel | 93ef9f6 | 2005-11-22 07:12:48 +0000 | [diff] [blame] | 12 | <target name="buildExtDocs" depends="buildEntExtDocs, buildServerExtDocs, buildWebExtDocs"/> |
| 13 | |
| 14 | <target name="buildEntExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 15 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee/plugin.xml" destination="${entOutputDir}" /> |
| 16 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.core/plugin.xml" destination="${entOutputDir}" /> |
| 17 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.ejb.annotation.model/plugin.xml" destination="${entOutputDir}" /> |
| 18 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.ejb.annotations.emitter/plugin.xml" destination="${entOutputDir}" /> |
| 19 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.ejb.annotations.xdoclet/plugin.xml" destination="${entOutputDir}" /> |
| 20 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.webservice/plugin.xml" destination="${entOutputDir}" /> |
| 21 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.navigator.ui/plugin.xml" destination="${entOutputDir}" /> |
| 22 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.ws.consumption/plugin.xml" destination="${entOutputDir}" /> |
| 23 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.ws.consumption.ui/plugin.xml" destination="${entOutputDir}" /> |
| 24 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.ws.uddiregistry/plugin.xml" destination="${entOutputDir}" /> |
| 25 | |
| 26 | <!-- Get the list of extension doc files. --> |
| 27 | <fileset dir="${entOutputDir}" casesensitive="yes" id="ext-docs-list-ent"> |
| 28 | <include name="*.html"/> |
| 29 | </fileset> |
| 30 | |
| 31 | <!-- Convert the list to an XML representation. --> |
| 32 | <pathconvert property="ext-doc-ent" refid="ext-docs-list-ent" pathsep="</file><file>"> |
| 33 | <map from="${entOutputDir}" to=""/> |
| 34 | </pathconvert> |
| 35 | <echo file="entextdocs.xml"><files component="enterprise"><file>${ext-doc-ent}</file></files></echo> |
| 36 | |
lmandel | 93ef9f6 | 2005-11-22 07:12:48 +0000 | [diff] [blame] | 37 | </target> |
| 38 | |
| 39 | |
| 40 | <target name="buildServerExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 41 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.server.core/plugin.xml" destination="${serverOutputDir}" /> |
| 42 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.server.generic.core/plugin.xml" destination="${serverOutputDir}" /> |
| 43 | |
| 44 | <!-- Get the list of extension doc files. --> |
| 45 | <fileset dir="${serverOutputDir}" casesensitive="yes" id="ext-docs-list-server"> |
| 46 | <include name="*.html"/> |
| 47 | </fileset> |
| 48 | |
| 49 | <!-- Convert the list to an XML representation. --> |
| 50 | <pathconvert property="ext-doc-server" refid="ext-docs-list-server" pathsep="</file><file>"> |
| 51 | <map from="${serverOutputDir}" to=""/> |
| 52 | </pathconvert> |
| 53 | <echo file="serverextdocs.xml"><files component="server"><file>${ext-doc-server}</file></files></echo> |
| 54 | |
lmandel | 93ef9f6 | 2005-11-22 07:12:48 +0000 | [diff] [blame] | 55 | </target> |
| 56 | |
| 57 | <target name="buildWebExtDocs"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 58 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.common.annotations.controller/plugin.xml" destination="${webOutputDir}" /> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 59 | <pde.convertSchemaToHTML manifest="../org.eclipse.jst.j2ee.web/plugin.xml" destination="${webOutputDir}" /> |
| 60 | |
| 61 | <!-- Get the list of extension doc files. --> |
| 62 | <fileset dir="${webOutputDir}" casesensitive="yes" id="ext-docs-list-web"> |
| 63 | <include name="*.html"/> |
| 64 | </fileset> |
| 65 | |
| 66 | <!-- Convert the list to an XML representation. --> |
| 67 | <pathconvert property="ext-doc-web" refid="ext-docs-list-web" pathsep="</file><file>"> |
| 68 | <map from="${webOutputDir}" to=""/> |
| 69 | </pathconvert> |
| 70 | <echo file="webextdocs.xml"><files component="web"><file>${ext-doc-web}</file></files></echo> |
| 71 | |
| 72 | </target> |
| 73 | |
| 74 | <target name="createDocListings"> |
| 75 | <!-- Create the overview document. --> |
| 76 | <xslt basedir="${basedir}" in="extDocListings.xml" out="${outputDir}${file.separator}index.html" style="extDocOverview.xsl"> |
| 77 | <param name="title" expression="${title}"/> |
| 78 | <param name="header" expression="${header}"/> |
| 79 | <param name="overview" expression="${overview}"/> |
lmandel | 8b44e12 | 2006-05-01 19:30:10 +0000 | [diff] [blame] | 80 | <param name="listed-ext-points" expression="${listed-ext-points}"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 81 | </xslt> |
| 82 | |
| 83 | <!-- Create the extention point toc. --> |
| 84 | <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] | 85 | <param name="listed-ext-points" expression="${listed-ext-points}"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 86 | <outputproperty name="method" value="xml"/> |
lmandel | e5e182d | 2005-12-08 01:24:32 +0000 | [diff] [blame] | 87 | <outputproperty name="indent" value="yes"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 88 | </xslt> |
| 89 | |
lmandel | 93ef9f6 | 2005-11-22 07:12:48 +0000 | [diff] [blame] | 90 | </target> |
| 91 | |
| 92 | </project> |