<?xml version="1.0" encoding="UTF-8"?>
<project>

  <import file="build.xml"/>

  <target name="dita2pdf2" depends="dita-preprocess, map2pdf2, topic2pdf2"/>

  <target name="topic2pdf2" if="noMap">
    <antcall target="preview.topic.pdf"/>
  </target>

  <target name="map2pdf2" unless="noMap">
    <dirname property="dita.temp.dir.fullpath" file="${dita.temp.dir}${file.separator}dummy.file"/>
    <pipeline message="topicmerge" module="TopicMerge"
              inputmap="${dita.temp.dir.fullpath}${file.separator}${user.input.file}"
              tempdir="${dita.temp.dir.fullpath}">
      <param name="output" location="${dita.temp.dir.fullpath}${file.separator}${dita.map.filename.root}_MERGED.xml"/>
      <param name="style" location="${dita.plugin.org.dita.pdf2.dir}/xsl/common/topicmerge.xsl"/>
    </pipeline>
    <antcall target="publish.map.pdf"/>
  </target>
  
</project>
