<?xml version="1.0"?>

<project name="local" default="libs" >

  <taskdef name="antjar" classname="org.apache.tools.ant.taskdefs.Antjar" />
  <property name="src" location="." />
  <property name="classes" location="../../build/testcases" />
  <property name="contrib" location="../../build/case_contrib.jar" />

  <target name="libs" depends="compile" >
    <antjar destfile="${contrib}" antxml="${src}/case-antlib.xml" >
      <fileset dir="${classes}" >
        <include name="org/**" />
      </fileset>
    </antjar>
  </target>

  <target name="compile" >
    <mkdir dir="${classes}" />
    <javac srcdir="${src}" destdir="${classes}" >
     <include name="org/**/*.java" />
    </javac>
  </target>

  <target name="clean" >
    <delete dir="${classes}" />
    <delete file='${contrib}'/>
  </target>

</project>
