carbidesdk/com.nokia.carbide.cpp.sdk.doc.user/buildDoc.xml
author fturovic <frank.turovich@nokia.com>
Tue, 14 Apr 2009 16:37:54 -0500
changeset 95 b7a53cc14f34
parent 2 d760517a8095
permissions -rw-r--r--
fixed broken closing tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
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
	<property name="outputDir" value="reference/api" />
cawthron
parents:
diff changeset
     5
	<property name="extensionPointsDir" value="html/reference/extension-points" />
cawthron
parents:
diff changeset
     6
	
cawthron
parents:
diff changeset
     7
	<target name="all">
cawthron
parents:
diff changeset
     8
		<antcall target="generateJavadoc" />
cawthron
parents:
diff changeset
     9
		<antcall target="generateExtensionPointHTML" />
cawthron
parents:
diff changeset
    10
	</target>
cawthron
parents:
diff changeset
    11
	
cawthron
parents:
diff changeset
    12
	<target name="getJavadocPath">
cawthron
parents:
diff changeset
    13
		<available file="${java.home}/../bin/javadoc.exe" property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
cawthron
parents:
diff changeset
    14
		<available file="${java.home}/../bin/javadoc" property="javadoc" value="${java.home}/../bin/javadoc" />
cawthron
parents:
diff changeset
    15
	</target>
cawthron
parents:
diff changeset
    16
	
cawthron
parents:
diff changeset
    17
	<target name="generateJavadoc" depends="getJavadocPath" if="javadoc">
cawthron
parents:
diff changeset
    18
	
cawthron
parents:
diff changeset
    19
	    <condition property="optionsFile" value="docBuildOptions.txt">
cawthron
parents:
diff changeset
    20
		      <os family="windows" />
cawthron
parents:
diff changeset
    21
	    </condition>
cawthron
parents:
diff changeset
    22
	
cawthron
parents:
diff changeset
    23
		<replace file="${basedir}/${optionsFile}" token="@rt@" value="${bootclasspath}" />
cawthron
parents:
diff changeset
    24
	
cawthron
parents:
diff changeset
    25
		<delete dir="${outputDir}"/>
cawthron
parents:
diff changeset
    26
		<mkdir dir="${outputDir}"/>	
cawthron
parents:
diff changeset
    27
		<exec dir="." executable="${javadoc}" output="doc.bin.log">
cawthron
parents:
diff changeset
    28
			<arg line="@${basedir}/${optionsFile} -J-Xmx500M" />
cawthron
parents:
diff changeset
    29
		</exec>
cawthron
parents:
diff changeset
    30
	</target>
cawthron
parents:
diff changeset
    31
	
cawthron
parents:
diff changeset
    32
	<target name="generateExtensionPointHTML">
cawthron
parents:
diff changeset
    33
		<pde.convertSchemaToHTML manifest="../com.nokia.carbide.templatewizard/plugin.xml" destination="${extensionPointsDir}" />
cawthron
parents:
diff changeset
    34
		<!-- the HTML generated will have fixed references to Eclipse CSS files. We can't copy
cawthron
parents:
diff changeset
    35
		 	 those into our plugin. So we update the output to point to copies in the cdt.isv
cawthron
parents:
diff changeset
    36
		 	 documentation -->
cawthron
parents:
diff changeset
    37
		<replace dir="${extensionPointsDir}">
cawthron
parents:
diff changeset
    38
			<replacetoken><![CDATA[import url("../..]]></replacetoken>
cawthron
parents:
diff changeset
    39
			<replacevalue><![CDATA[import url("PLUGINS_ROOT/org.eclipse.cdt.doc.isv]]></replacevalue>
cawthron
parents:
diff changeset
    40
		</replace>
cawthron
parents:
diff changeset
    41
	</target>
cawthron
parents:
diff changeset
    42
	
cawthron
parents:
diff changeset
    43
	<target name="createDocZip">
cawthron
parents:
diff changeset
    44
		<zip zipfile="${basedir}/doc.zip"
cawthron
parents:
diff changeset
    45
			basedir="${basedir}"
cawthron
parents:
diff changeset
    46
			includes=""
cawthron
parents:
diff changeset
    47
		/>
cawthron
parents:
diff changeset
    48
	</target>
cawthron
parents:
diff changeset
    49
cawthron
parents:
diff changeset
    50
</project>