Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 194272ef8ff02b27732ebb06537014d470073098 (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
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>
<project name="CDT ISV Doc Build" default="all"  basedir="." >

	<target name="all">
		<antcall target="convertSchemaToHtml" />
		<!--antcall target="examplesDocCopy" /-->
		<antcall target="generateJavadoc" />
		<antcall target="createDocZip" />
	</target>
	
	<target name="convertSchemaToHtml" if="eclipse.running">
		<property name="dest" value="reference/extension-points" />
	    <record name="${basedir}/cdtconvert.txt" action="start"/>
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.core/plugin.xml" destination="${dest}" />
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.ui/plugin.xml" destination="${dest}" />
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.debug.core/plugin.xml" destination="${dest}" />
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.make.core/plugin.xml" destination="${dest}" />
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.make.ui/plugin.xml" destination="${dest}" />
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.managedbuilder.core/plugin.xml" destination="${dest}" />
	    <pde.convertSchemaToHTML manifest="../org.eclipse.cdt.managedbuilder.ui/plugin.xml" destination="${dest}" />
	    <record name="${basedir}/cdtconvert.txt" action="stop"/>
	</target>
	
	<target name="examplesDocCopy" >
		 <copy todir="samples">
	    	<fileset dir="..">
	    		<include name="org.eclipse.jdt.ui.examples.projects/doc-html/"/>
		    </fileset>
		  </copy>
	</target>
	
	<target name="getJavadocPath">
		<available file="${java.home}/../bin/javadoc.exe" property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
		<available file="${java.home}/../bin/javadoc" property="javadoc" value="${java.home}/../bin/javadoc" />
	</target>
	
	<target name="generateJavadoc" depends="getJavadocPath" if="javadoc">
	
		<condition property="optionsFile" value="cdtOptions">
		      <os family="unix" />
	    </condition>
	    <condition property="optionsFile" value="cdtOptions.txt">
		      <os family="windows" />
	    </condition>
	
		<replace file="${basedir}/${optionsFile}" token="@rt@" value="${bootclasspath}" />
	
		<!--scrub isv plugin directories of any preexisting api doc content-->
		<delete dir="reference/api"/>
		<mkdir dir="reference/api"/>
	
		<exec dir="." executable="${javadoc}" output="doc.bin.log">
			<arg line="@${basedir}/${optionsFile} -J-Xmx500M" />
		</exec>
	</target>
	
	<target name="createDocZip">
		<zip zipfile="${basedir}/doc.zip"
			basedir="${basedir}"
			includes="book.css, cpy.gif, notices.html, about.html, no_help_exists.htm, concepts/**, gettingStarted/**, images/**, reference/**, tasks/**,samples/**,guide/**,questions/**"
		/>
	</target>

</project>

Back to the top