blob: ccb3edff9f288986f67d0d53d3ab5e38bf733d22 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="Build Extension Point Documentation" default="createExtDocs" basedir=".">
<property file="buildExtDocs.properties"/>
<property name="outputDir" value="${basedir}"/>
<property name="apioutputDir" value="${outputDir}${file.separator}reference${file.separator}ext"/>
<target name="createExtDocs" depends="buildExtDocs, createDocListings"/>
<target name="buildExtDocs" depends="buildJSFExtDocs"/>
<target name="buildJSFExtDocs">
<!-- cleanup old -->
<delete>
<fileset dir="${apioutputDir}" casesensitive="yes" id="ext-docs-list-ent">
<include name="*.html"/>
</fileset>
</delete>
<!-- generate new html from ext-pt schemas -->
<pde.convertSchemaToHTML manifest="../org.eclipse.wst.ws.service.policy/plugin.xml" destination="${apioutputDir}" />
<pde.convertSchemaToHTML manifest="../org.eclipse.wst.ws.service.policy.ui/plugin.xml" destination="${apioutputDir}" />
<!-- Get the list of extension doc files. -->
<fileset dir="${apioutputDir}" casesensitive="yes" id="ext-docs-list-ent" >
<include name="*.html"/>
</fileset>
<!-- Convert the list to an XML representation. -->
<pathconvert property="ext-doc-ent" refid="ext-docs-list-ent" pathsep="</file>/n/n<file>" >
<map from="${apioutputDir}${file.separator}" to=""/>
</pathconvert>
<echo file="extdocs.xml"><files component="webservice"><file>${ext-doc-ent}</file></files></echo>
</target>
<target name="createDocListings">
<delete file="${apioutputDir}${file.separator}index.html"/>
<!-- Create the overview document. -->
<xslt basedir="${basedir}" in="extDocListings.xml" out="${apioutputDir}${file.separator}index.html" style="extDocOverview.xsl">
<param name="title" expression="${title}"/>
<param name="header" expression="${header}"/>
<param name="overview" expression="${overview}"/>
<param name="listed-ext-points" expression="${listed-ext-points}"/>
</xslt>
<!-- Create the extention point toc. -->
<xslt basedir="${basedir}" in="extDocListings.xml" out="topics_ExtPoint_Reference.xml" style="extDocToc.xsl">
<param name="listed-ext-points" expression="${listed-ext-points}"/>
<outputproperty name="method" value="xml"/>
<outputproperty name="indent" value="yes"/>
</xslt>
</target>
</project>
|