2
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<project name="CDT ISV Doc Build" default="all" basedir="." >
|
|
3 |
|
|
4 |
<property name="outputDir" value="reference/api" />
|
|
5 |
<property name="extensionPointsDir" value="html/reference/extension-points" />
|
|
6 |
|
|
7 |
<target name="all">
|
|
8 |
<antcall target="generateJavadoc" />
|
|
9 |
<antcall target="generateExtensionPointHTML" />
|
|
10 |
</target>
|
|
11 |
|
|
12 |
<target name="getJavadocPath">
|
|
13 |
<available file="${java.home}/../bin/javadoc.exe" property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
|
|
14 |
<available file="${java.home}/../bin/javadoc" property="javadoc" value="${java.home}/../bin/javadoc" />
|
|
15 |
</target>
|
|
16 |
|
|
17 |
<target name="generateJavadoc" depends="getJavadocPath" if="javadoc">
|
|
18 |
|
|
19 |
<condition property="optionsFile" value="docBuildOptions.txt">
|
|
20 |
<os family="windows" />
|
|
21 |
</condition>
|
|
22 |
|
|
23 |
<replace file="${basedir}/${optionsFile}" token="@rt@" value="${bootclasspath}" />
|
|
24 |
|
|
25 |
<delete dir="${outputDir}"/>
|
|
26 |
<mkdir dir="${outputDir}"/>
|
|
27 |
<exec dir="." executable="${javadoc}" output="doc.bin.log">
|
|
28 |
<arg line="@${basedir}/${optionsFile} -J-Xmx500M" />
|
|
29 |
</exec>
|
|
30 |
</target>
|
|
31 |
|
|
32 |
<target name="generateExtensionPointHTML">
|
|
33 |
<pde.convertSchemaToHTML manifest="../com.nokia.carbide.templatewizard/plugin.xml" destination="${extensionPointsDir}" />
|
|
34 |
<!-- the HTML generated will have fixed references to Eclipse CSS files. We can't copy
|
|
35 |
those into our plugin. So we update the output to point to copies in the cdt.isv
|
|
36 |
documentation -->
|
|
37 |
<replace dir="${extensionPointsDir}">
|
|
38 |
<replacetoken><![CDATA[import url("../..]]></replacetoken>
|
|
39 |
<replacevalue><![CDATA[import url("PLUGINS_ROOT/org.eclipse.cdt.doc.isv]]></replacevalue>
|
|
40 |
</replace>
|
|
41 |
</target>
|
|
42 |
|
|
43 |
<target name="createDocZip">
|
|
44 |
<zip zipfile="${basedir}/doc.zip"
|
|
45 |
basedir="${basedir}"
|
|
46 |
includes=""
|
|
47 |
/>
|
|
48 |
</target>
|
|
49 |
|
|
50 |
</project>
|