DITA-OT_CXX_Plugin/cxxapiref/run-ant.xml
changeset 3 d8fccb2cd802
parent 1 82f11024044a
child 4 468f4c8d3d5b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DITA-OT_CXX_Plugin/cxxapiref/run-ant.xml	Fri Apr 23 20:47:58 2010 +0100
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+  All rights reserved.
+-->
+<project basedir="..\.."
+         default="all"
+         name="cxxapiref">
+  <import file="${basedir}${file.separator}build.xml" />
+  <dirname file="${ant.file.cxxapiref}"
+           property="cxxapiref.dir" />
+  <target depends="cxxapirefSample2xhtml"
+          description="build all C++ API Reference output"
+          name="all" />
+  <!-- sample content targets -->
+  <target depends="use-init"
+          description="build HTML for the C++ API Reference samples"
+          name="cxxapirefSample2xhtml">
+    <mkdir dir="${cxxapiref.dir}${file.separator}out" />
+    <mkdir dir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
+    <antcall target="dita2xhtml.nokia">
+      <param name="dita.extname"
+             value=".xml" />
+      <param name="transtype"
+             value="xhtml" />
+      <param name="args.input"
+             value="${cxxapiref.dir}${file.separator}sample${file.separator}cxxApiExamples.ditamap" />
+      <param name="output.dir"
+             value="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
+    </antcall>
+    <copy file="${cxxapiref.dir}${file.separator}sample${file.separator}frameset.html"
+          todir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
+  </target>
+  <target description="Delete the sample output files from the build"
+          name="cxxapirefSampleClean">
+    <delete dir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
+  </target>
+  <!-- documentation targets -->
+  <target depends="use-init"
+          description="build the HTML documentation for the specialization"
+          name="cxxapirefDoc2xhtml">
+    <mkdir dir="${cxxapiref.dir}${file.separator}out" />
+    <antcall target="dita2xhtml">
+      <param name="args.input"
+             value="${cxxapiref.dir}${file.separator}doc${file.separator}root.ditamap" />
+      <param name="output.dir"
+             value="${cxxapiref.dir}${file.separator}out${file.separator}doc" />
+      <param name="dita.extname"
+             value=".xml" />
+    </antcall>
+  </target>
+  <target description="Delete the documentation output files from the build"
+          name="cxxapirefDocClean">
+    <delete dir="${cxxapiref.dir}${file.separator}out${file.separator}doc" />
+  </target>
+</project>