<project name="CDK" default="overview" basedir=".">

    <property name="javadoc.dir" value="javadoc" />
    <property name="pathtojava3d" value="" />

    <path id="project.class.path">
        <pathelement location="." />
        <fileset dir="../../jar">
            <include name="*.jar" />
        </fileset>
        <fileset dir="../../develjar">
            <include name="*.jar" />
        </fileset>
        <fileset dir="${pathtojava3d}">
            <include name="*.jar" />
        </fileset>
    </path>

    <target id="info" name="info"> 
        <!-- Gives information about the building process. -->
        <echo message="Environment:" />
        <echo message="   Ant version: ${ant.version}" />
        <echo message="  Java version: ${java.version}" />
        <echo message="  Java ext dir: ${java.ext.dirs}" />
    </target>
    
    <target name="overview" id="overview" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.JavaDocStats" path="."/>

            <packageset dir="../../src/main">
              <include name="org/openscience/cdk/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="keyword.index" id="keyword.index" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.MakeKeywordIndexDoclet" path="."/>

            <packageset dir="../../src/main">
              <include name="org/openscience/cdk/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="dictref.index" id="dictref.index" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.MakeDictionaryIndexDoclet" path="."/>

            <packageset dir="../../src/">
              <include name="org/openscience/cdk/**"/>
              <exclude name="org/openscience/cdk/test/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="classes.mod" id="classes.mod" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.MakeClassesDotModDoclet" path="."/>

            <packageset dir="../../src/">
              <include name="org/openscience/cdk/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="classes.web.mod" id="classes.web.mod" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.MakeClassesDotWebDotModDoclet" path="."/>

            <packageset dir="../../src/">
              <include name="org/openscience/cdk/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="src.star.javafiles" id="src.star.javafiles" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.MakeJavaFilesFilesDoclet" path="."/>

            <packageset dir="../../src/">
              <include name="org/openscience/cdk/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="dependencies" id="dependencies" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.MakeJarDependencyDoclet" path="."/>

            <packageset dir="../../src/">
              <include name="org/openscience/cdk/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="xmi" id="xmi" depends="compileDoclets">
        <javadoc private="false" public="true">
            <classpath refid="project.class.path" />

            <doclet name="net.sf.cdk.tools.XMIDoclet" path="."/>

            <packageset dir="../../src/">
              <include name="org/openscience/cdk/**"/>
              <exclude name="org/openscience/cdk/test/**"/>
            </packageset>
        </javadoc>
    </target>

    <target name="compileDoclets" id="compileDoclets">
      <javac srcdir="source" destdir="."
             includes="*.java" debug="on" optimize="off" />
    </target>
    
</project>



