DITA-OT_CXX_Plugin/cxxapiref/run-ant.xml
changeset 3 d8fccb2cd802
parent 1 82f11024044a
child 4 468f4c8d3d5b
equal deleted inserted replaced
2:932c358ece3e 3:d8fccb2cd802
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!--
       
     3   Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4   All rights reserved.
       
     5 -->
       
     6 <project basedir="..\.."
       
     7          default="all"
       
     8          name="cxxapiref">
       
     9   <import file="${basedir}${file.separator}build.xml" />
       
    10   <dirname file="${ant.file.cxxapiref}"
       
    11            property="cxxapiref.dir" />
       
    12   <target depends="cxxapirefSample2xhtml"
       
    13           description="build all C++ API Reference output"
       
    14           name="all" />
       
    15   <!-- sample content targets -->
       
    16   <target depends="use-init"
       
    17           description="build HTML for the C++ API Reference samples"
       
    18           name="cxxapirefSample2xhtml">
       
    19     <mkdir dir="${cxxapiref.dir}${file.separator}out" />
       
    20     <mkdir dir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
       
    21     <antcall target="dita2xhtml.nokia">
       
    22       <param name="dita.extname"
       
    23              value=".xml" />
       
    24       <param name="transtype"
       
    25              value="xhtml" />
       
    26       <param name="args.input"
       
    27              value="${cxxapiref.dir}${file.separator}sample${file.separator}cxxApiExamples.ditamap" />
       
    28       <param name="output.dir"
       
    29              value="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
       
    30     </antcall>
       
    31     <copy file="${cxxapiref.dir}${file.separator}sample${file.separator}frameset.html"
       
    32           todir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
       
    33   </target>
       
    34   <target description="Delete the sample output files from the build"
       
    35           name="cxxapirefSampleClean">
       
    36     <delete dir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
       
    37   </target>
       
    38   <!-- documentation targets -->
       
    39   <target depends="use-init"
       
    40           description="build the HTML documentation for the specialization"
       
    41           name="cxxapirefDoc2xhtml">
       
    42     <mkdir dir="${cxxapiref.dir}${file.separator}out" />
       
    43     <antcall target="dita2xhtml">
       
    44       <param name="args.input"
       
    45              value="${cxxapiref.dir}${file.separator}doc${file.separator}root.ditamap" />
       
    46       <param name="output.dir"
       
    47              value="${cxxapiref.dir}${file.separator}out${file.separator}doc" />
       
    48       <param name="dita.extname"
       
    49              value=".xml" />
       
    50     </antcall>
       
    51   </target>
       
    52   <target description="Delete the documentation output files from the build"
       
    53           name="cxxapirefDocClean">
       
    54     <delete dir="${cxxapiref.dir}${file.separator}out${file.separator}doc" />
       
    55   </target>
       
    56 </project>