<project name="BDJ" default="dist" basedir=".">
    <description>
        Build file for the java portion of libbluray
    </description>

    <property name="src" location="java"/>
    <property name="build" location="build"/>
    <property name="dist"  location="../../.libs"/>
    <property name="src_awt" value=""/>
    <property name="bootclasspath" value=""/>
    <property name="version" value=""/>

    <target name="init">
        <tstamp/>
        <mkdir dir="${build}"/>
        <mkdir dir="${dist}"/>
    </target>

    <target name="compile" depends="init"
            description="compile the source " >
        <javac srcdir="${src}${src_awt}" destdir="${build}" debug="yes"
               bootclasspath="${bootclasspath}"
               source="1.4" target="1.4">
               <compilerarg value="-XDignore.symbol.file"/>
               <compilerarg value="-Xlint:-deprecation"/>
        </javac>
    </target>
    <target name="dist" depends="compile"
            description="generate the distribution" >
        <jar jarfile="${dist}/libbluray-${version}.jar" basedir="${build}" />
    </target>

    <target name="clean"
            description="clean up" >
        <delete dir="${build}"/>
        <delete dir="${dist}/libbluray-${version}.jar"/>
    </target>
</project>
