Newer
Older
CollabUnit / build.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="CollabUnit" default="dist" basedir=".">

  <property name="app" value="CollabUnit"/>

  <target name ="init">
   <mkdir dir="build/main"/>
   <mkdir dir="build/tests"/>
   <mkdir dir="dist"/>
  </target>

  <target name="clean">
    <delete dir="build"/>
    <delete dir="dist"/>
  </target>

  <target name="compile" depends="init">
    <javac
       srcdir="src/main"
       destdir="build/main">
      <classpath>
        <pathelement location="lib/simple-core-2.5.3.jar"/>
        <pathelement location="lib/junit.jar"/>
      </classpath>
    </javac>
  </target>

  <target name="dist" depends="compile">
    <jar jarfile="dist/${app}.jar">
      <fileset dir="build/main"/>
    </jar>
  </target>

</project>