<?xml version="1.0" encoding="UTF-8"?>
<project name="Documentation Project" default="all" basedir=".">
  <target name="all" description="Builds all the items in the project and the HTML distribution pages">
    <!-- Load in properties -->
    <loadproperties srcFile="ant.properties"/>

    <!-- Execute the outputBuilder -->
    <exec executable="java">
      <arg line="-jar"/>
      <arg line="OutputBuilder.jar"/>
      <arg line="doctree.xml"/>
    </exec>

    <!-- Clean up the mess -->
    <delete dir="${src}/files"/>
  </target>

  <target name="maintain" description="Loads DoctreeMaintainer">
    <exec executable="java">
      <arg line="-jar"/>
      <arg line="DoctreeMaintainer.jar"/>
      <arg line="doctree.xml"/>
    </exec>
  </target>

  <target name="clean" description="Deletes the output directory">
    <loadproperties srcFile="ant.properties"/>
    <delete dir="${build}" includeEmptyDirs="true"/>
  </target>
</project>

