<project name="downloader" default="dist">

  <target name="compile">
    <mkdir dir="bin" />

    <javac source="1.7"
           target="1.7" 
	   srcdir="src" 
           destdir="bin" 
	   debug="true" 
	   includeantruntime="true"
	   nowarn="true"
	   compiler="org.eclipse.jdt.core.JDTCompilerAdapter">
      <compilerclasspath path="../../java/mode/org.eclipse.jdt.core.jar; 
                               ../../java/mode/jdtCompilerAdapter.jar" />
    </javac>
  </target>
  
  <target name="dist" depends="compile">
    <jar basedir="bin" destfile="downloader.jar" />
  </target>
  
  <target name="demo" depends="dist">
    <taskdef name="downloader" 
	     classname="Downloader"
	     classpath="downloader.jar" />
    <downloader version="8" update="31" build="13" 
                jdk="true" flavor="macosx-x64.dmg" />
  </target>
  
  <target name="clean">
    <delete dir="bin" />
    <delete file="downloader.jar" />
  </target>

</project>
