<!-- $Id: build.xml,v 1.2 2003/03/04 07:53:18 kcochran Exp $ -->
<project name="IRC" default="dist" basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="IRC"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>

  <!-- For writing the jar -->
  <property name="jar.bin.file" value="IRC.jar"/>
  <property name="manifest.file" value="manifest"/>
  <property name="manifest.main.class" value="net.trolans.IRC.IRC"/>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="manifest"
     description="Write the Java manifest">
   <echo file="${manifest.file}">Manifest-Version: 1.2
Main-Class: ${manifest.main.class}
   </echo>
  </target>

  <target name="dist" depends="compile, manifest"
        description="generate the distribution" >
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${jar.bin.file}" manifest="${manifest.file}" basedir="${build}"/>

  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete file="${jar.bin.file}"/>
    <delete file="${manifest.file}"/>
  </target>
</project>