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