blob: 2eb285fbc0746a40e8e122e093d7ced1b7ec7942 [file] [log] [blame]
lmandela6806d42005-11-22 06:50:29 +00001<?xml version="1.0" encoding="UTF-8"?>
lmandel1c95eaf2005-12-07 06:38:54 +00002<project name="Build Extension Point Documentation" default="createExtDocs" basedir=".">
lmandela6806d42005-11-22 06:50:29 +00003
lmandel1c95eaf2005-12-07 06:38:54 +00004 <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}"/>
lmandela6806d42005-11-22 06:50:29 +000012
lmandel1c95eaf2005-12-07 06:38:54 +000013 <target name="createExtDocs" depends="buildExtDocs, createDocListings"/>
lmandela6806d42005-11-22 06:50:29 +000014
ndai5c6f24d2006-10-23 09:30:51 +000015 <target name="buildExtDocs" depends="buildXMLExtDocs, buildCommonExtDocs, buildServerExtDocs, buildWebExtDocs, buildWSExtDocs"/>
lmandel1c95eaf2005-12-07 06:38:54 +000016
lmandela6806d42005-11-22 06:50:29 +000017 <target name="buildXMLExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +000018 <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="&lt;/file&gt;&lt;file&gt;">
30 <map from="${xmlOutputDir}" to=""/>
31 </pathconvert>
32 <echo file="xmlextdocs.xml">&lt;files component="xml"&gt;&lt;file&gt;${ext-doc-xml}&lt;/file&gt;&lt;/files&gt;</echo>
33
lmandela6806d42005-11-22 06:50:29 +000034 </target>
35
36 <target name="buildCommonExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +000037 <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}" />
lmandel1c95eaf2005-12-07 06:38:54 +000047 <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="&lt;/file&gt;&lt;file&gt;">
59 <map from="${commonOutputDir}" to=""/>
60 </pathconvert>
61 <echo file="commonextdocs.xml">&lt;files component="common"&gt;&lt;file&gt;${ext-doc-common}&lt;/file&gt;&lt;/files&gt;</echo>
62
lmandela6806d42005-11-22 06:50:29 +000063 </target>
64
ndai5c6f24d2006-10-23 09:30:51 +000065
lmandela6806d42005-11-22 06:50:29 +000066
67 <target name="buildServerExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +000068 <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="&lt;/file&gt;&lt;file&gt;">
80 <map from="${serverOutputDir}" to=""/>
81 </pathconvert>
82 <echo file="serverextdocs.xml">&lt;files component="server"&gt;&lt;file&gt;${ext-doc-server}&lt;/file&gt;&lt;/files&gt;</echo>
83
lmandela6806d42005-11-22 06:50:29 +000084 </target>
85
86 <target name="buildWebExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +000087 <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="&lt;/file&gt;&lt;file&gt;">
97 <map from="${webOutputDir}" to=""/>
98 </pathconvert>
99 <echo file="webextdocs.xml">&lt;files component="web"&gt;&lt;file&gt;${ext-doc-web}&lt;/file&gt;&lt;/files&gt;</echo>
100
lmandela6806d42005-11-22 06:50:29 +0000101 </target>
102
103 <target name="buildWSExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +0000104 <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="&lt;/file&gt;&lt;file&gt;">
116 <map from="${wsOutputDir}" to=""/>
117 </pathconvert>
118 <echo file="wsextdocs.xml">&lt;files component="ws"&gt;&lt;file&gt;${ext-doc-ws}&lt;/file&gt;&lt;/files&gt;</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}"/>
lmandel8b44e122006-05-01 19:30:10 +0000128 <param name="listed-ext-points" expression="${listed-ext-points}"/>
lmandel1c95eaf2005-12-07 06:38:54 +0000129 </xslt>
130
131 <!-- Create the extention point toc. -->
132 <xslt basedir="${basedir}" in="extDocListings.xml" out="topics_ExtPoint_Reference.xml" style="extDocToc.xsl">
lmandel8b44e122006-05-01 19:30:10 +0000133 <param name="listed-ext-points" expression="${listed-ext-points}"/>
lmandel1c95eaf2005-12-07 06:38:54 +0000134 <outputproperty name="method" value="xml"/>
lmandele5e182d2005-12-08 01:24:32 +0000135 <outputproperty name="indent" value="yes"/>
lmandel1c95eaf2005-12-07 06:38:54 +0000136 </xslt>
137
lmandela6806d42005-11-22 06:50:29 +0000138 </target>
139</project>