<project name="jplotter" default="dist" basedir=".">
  <property name="src" location="src"/>
  <property name="srcmain" location="../src"/>
  <property name="build" location="build"/>
  <property name="jarfile" location="./jplotter.jar"/>

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

  <target name="compile" depends="init" description="compile the source " >
    <javac includeantruntime="false" sourcepath="${srcmain}" srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="compile" description="generate the distribution" >
    <jar jarfile="${jarfile}" basedir="${build}" manifestencoding="UTF-8">
      <manifest>
        <attribute name="Main-Class" value="jplotter.Jplotter"/>
        <attribute name="Class-Path" value="$jarfile"/>
      </manifest>
    </jar>
  </target>

  <target name="clean" description="clean up" >
    <delete dir="${build}"/>
    <delete file="${jarfile}"/>
  </target>
</project>
