<?xml version="1.0"?>

<project basedir="." default="run">
    <property file="../examples.properties"/>
    
    <path id="classpath">
        <fileset dir="../../lib" includes="*.jar" excludes="ant.jar"/>
        <fileset dir="../../..">
            <include name="${jaxp.directory}/**/*.jar"/>
            <include name="jwsdp-shared/lib/**/*.jar"/>
        </fileset>
        <pathelement location="."/>
    </path>

    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
        <classpath refid="classpath" />
    </taskdef>
    
    <!-- compile Java source files -->
    <target name="compile">
    
        <!-- generate the Java content classes from the schema -->
        <echo message="Compiling the schema..."/>

	<xjc schema="jxdds_3.0.0.1.xsd" binding="binding.xjb" target="." stackSize="128mb" removeOldOutput="yes" />

        <!-- generate the javadocs from the content classes -->
        <mkdir dir="docs/api"/>
        <javadoc packagenames="jxdd"
                 sourcepath="."
                 destdir="docs/api"
		 windowtitle="Generated Interfaces for jxdd_3.0.0.1.xsd">
            <classpath refid="classpath" />
    	</javadoc>

        <!-- compile all of the java sources -->
        <echo message="Compiling the java source files..."/>
        <javac srcdir="." destdir="." debug="on">
            <classpath refid="classpath" />
        </javac>
    </target>
    
    <target name="run" depends="compile">
	    <echo message="Done for jxdd schema..."/>
    </target>
</project>

