<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on 
     Sourceforge.net. See the accompanying license.txt file for 
     applicable licenses.-->
<!-- (C) Copyright IBM Corporation 2005. All Rights Reserved.
 *-->
<project name="build project document" default="all" basedir="../../..">
    <path id="dost.class.path">
        <pathelement location="${basedir}${file.separator}lib${file.separator}dost.jar"/>
    </path>
  
    <taskdef name="integrate" classname="org.dita.dost.platform.IntegratorTask">
        <classpath refid="dost.class.path"/>
    </taskdef>
    
    <property name="my.input.dir" 
        value="${basedir}${file.separator}SourceForgeFiles${file.separator}doc"/>
    <property name="my.resource.dir" 
        value="${my.input.dir}${file.separator}resource"/>
    <property name="my.output.dir" 
        value="${basedir}${file.separator}pmdocs${file.separator}doc${file.separator}xhtml"/>
    <property name="args.csspath" value="css"/>
    
    <target name="integrate">
      <integrate ditadir="${basedir}"/>
    </target>
  
    <target name="all" depends="integrate, build-doc"/>
    
    <target name="build-doc" description="build DITA Open Toolkit web docs">
        <ant antfile="${basedir}${file.separator}conductor.xml" target="init">
            <property name="args.input" value="${my.input.dir}${file.separator}userguide.ditamap"/>
            <property name="output.dir" value="${my.output.dir}"/>
            <property name="args.ftr" value="${my.resource.dir}${file.separator}htmlfoot.html"/>
            <property name="args.css" value="${my.resource.dir}${file.separator}dita-ot.css"/>
            <property name="args.copycss" value="yes"/>
            <property name="args.xhtml.toc" value="toc"/>
            <property name="transtype" value="xhtml"/>
        </ant>
        <copy todir="${my.output.dir}">
            <fileset dir="${my.resource.dir}" includes="index.html"/>
        </copy>
    </target>
</project>