DITA-OT_CXX_Plugin/cxxapiref/run-ant.xml
author Michel Szarindar <Michel.Szarindar@Nokia.com>
Thu, 18 Mar 2010 18:26:18 +0000
changeset 1 82f11024044a
child 4 468f4c8d3d5b
permissions -rw-r--r--
Contribution of a new version of ORB and CXX DITA plug-in bug 1461 bug 1621 bug 1962

<?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>