blob: 98f7b2e421f1b9e6616a6d0c4e619fe121772a61 [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
lmandel1c95eaf2005-12-07 06:38:54 +000015 <target name="buildExtDocs" depends="buildXMLExtDocs, buildCommonExtDocs, buildRDBExtDocs, buildServerExtDocs, buildWebExtDocs, buildWSExtDocs"/>
16
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
65 <target name="buildRDBExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +000066 <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="&lt;/file&gt;&lt;file&gt;">
82 <map from="${rdbOutputDir}" to=""/>
83 </pathconvert>
84 <echo file="rdbextdocs.xml">&lt;files component="rdb"&gt;&lt;file&gt;${ext-doc-rdb}&lt;/file&gt;&lt;/files&gt;</echo>
85
lmandela6806d42005-11-22 06:50:29 +000086 </target>
87
88 <target name="buildServerExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +000089 <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="&lt;/file&gt;&lt;file&gt;">
101 <map from="${serverOutputDir}" to=""/>
102 </pathconvert>
103 <echo file="serverextdocs.xml">&lt;files component="server"&gt;&lt;file&gt;${ext-doc-server}&lt;/file&gt;&lt;/files&gt;</echo>
104
lmandela6806d42005-11-22 06:50:29 +0000105 </target>
106
107 <target name="buildWebExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +0000108 <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="&lt;/file&gt;&lt;file&gt;">
118 <map from="${webOutputDir}" to=""/>
119 </pathconvert>
120 <echo file="webextdocs.xml">&lt;files component="web"&gt;&lt;file&gt;${ext-doc-web}&lt;/file&gt;&lt;/files&gt;</echo>
121
lmandela6806d42005-11-22 06:50:29 +0000122 </target>
123
124 <target name="buildWSExtDocs">
lmandel1c95eaf2005-12-07 06:38:54 +0000125 <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="&lt;/file&gt;&lt;file&gt;">
137 <map from="${wsOutputDir}" to=""/>
138 </pathconvert>
139 <echo file="wsextdocs.xml">&lt;files component="ws"&gt;&lt;file&gt;${ext-doc-ws}&lt;/file&gt;&lt;/files&gt;</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}"/>
lmandel8b44e122006-05-01 19:30:10 +0000149 <param name="listed-ext-points" expression="${listed-ext-points}"/>
lmandel1c95eaf2005-12-07 06:38:54 +0000150 </xslt>
151
152 <!-- Create the extention point toc. -->
153 <xslt basedir="${basedir}" in="extDocListings.xml" out="topics_ExtPoint_Reference.xml" style="extDocToc.xsl">
lmandel8b44e122006-05-01 19:30:10 +0000154 <param name="listed-ext-points" expression="${listed-ext-points}"/>
lmandel1c95eaf2005-12-07 06:38:54 +0000155 <outputproperty name="method" value="xml"/>
lmandele5e182d2005-12-08 01:24:32 +0000156 <outputproperty name="indent" value="yes"/>
lmandel1c95eaf2005-12-07 06:38:54 +0000157 </xslt>
158
lmandela6806d42005-11-22 06:50:29 +0000159 </target>
160</project>