1
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<project name="CDT ISV Doc Build" default="all" basedir="." >
|
|
3 |
|
|
4 |
<target name="all">
|
|
5 |
<antcall target="convertSchemaToHtml" />
|
|
6 |
<!--antcall target="examplesDocCopy" /-->
|
|
7 |
<antcall target="generateJavadoc" />
|
|
8 |
</target>
|
|
9 |
|
|
10 |
<target name="convertSchemaToHtml" if="eclipse.running">
|
|
11 |
<property name="dest" value="reference/extension-points" />
|
|
12 |
<record name="${basedir}/cdtconvert.txt" action="start"/>
|
|
13 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.core/plugin.xml" destination="${dest}" />
|
|
14 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.ui/plugin.xml" destination="${dest}" />
|
|
15 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.debug.core/plugin.xml" destination="${dest}" />
|
|
16 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.make.core/plugin.xml" destination="${dest}" />
|
|
17 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.make.ui/plugin.xml" destination="${dest}" />
|
|
18 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.managedbuilder.core/plugin.xml" destination="${dest}" />
|
|
19 |
<pde.convertSchemaToHTML manifest="../org.eclipse.cdt.managedbuilder.ui/plugin.xml" destination="${dest}" />
|
|
20 |
<record name="${basedir}/cdtconvert.txt" action="stop"/>
|
|
21 |
</target>
|
|
22 |
|
|
23 |
<target name="examplesDocCopy" >
|
|
24 |
<copy todir="samples">
|
|
25 |
<fileset dir="..">
|
|
26 |
<include name="org.eclipse.jdt.ui.examples.projects/doc-html/"/>
|
|
27 |
</fileset>
|
|
28 |
</copy>
|
|
29 |
</target>
|
|
30 |
|
|
31 |
<target name="getJavadocPath">
|
|
32 |
<available file="${java.home}/../bin/javadoc.exe" property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
|
|
33 |
<available file="${java.home}/../bin/javadoc" property="javadoc" value="${java.home}/../bin/javadoc" />
|
|
34 |
</target>
|
|
35 |
|
|
36 |
<target name="generateJavadoc" depends="getJavadocPath" if="javadoc">
|
|
37 |
|
|
38 |
<condition property="optionsFile" value="cdtOptions">
|
|
39 |
<os family="unix" />
|
|
40 |
</condition>
|
|
41 |
<condition property="optionsFile" value="cdtOptions.txt">
|
|
42 |
<os family="windows" />
|
|
43 |
</condition>
|
|
44 |
|
|
45 |
<replace file="${basedir}/${optionsFile}" token="@rt@" value="${bootclasspath}" />
|
|
46 |
|
|
47 |
<!--scrub isv plugin directories of any preexisting api doc content-->
|
|
48 |
<delete dir="reference/api"/>
|
|
49 |
<mkdir dir="reference/api"/>
|
|
50 |
|
|
51 |
<exec dir="." executable="${javadoc}" output="doc.bin.log">
|
|
52 |
<arg line="@${basedir}/${optionsFile} -J-Xmx500M" />
|
|
53 |
</exec>
|
|
54 |
</target>
|
|
55 |
|
|
56 |
<target name="createDocZip">
|
|
57 |
<zip zipfile="${basedir}/doc.zip"
|
|
58 |
basedir="${basedir}"
|
|
59 |
includes="book.css, cpy.gif, notices.html, about.html, no_help_exists.htm, concepts/**, gettingStarted/**, images/**, reference/**, tasks/**,samples/**,guide/**,questions/**"
|
|
60 |
/>
|
|
61 |
</target>
|
|
62 |
|
|
63 |
</project>
|