MikMod for Java - jmikmod / source / java / build.xml

Full commit
<project name="JMikMod" default="dist" basedir=".">
        Build file for MikMod for Java -
  <!-- set global properties for this build -->
  <property name="src" location="source"/>
  <property name="build" location="build"/>
  <property name="dist" location="dist"/>
  <property name="version" value="0.3.5"/>
  <property name="src_dist" location="dist-source"/>
  <property name="base" location="."/>

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

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

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <!-- Put everything in ${build} into the appropriate jar file -->
    <jar jarfile="${dist}/lib/${}-${version}.jar" basedir="${build}"/>

  <target name="src_dist" 
        description="generate the source distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${src_dist}/"/>

    <!-- Put everything in ${build} into the appropriate jar file -->
    <jar jarfile="${src_dist}/${}-${version}-src.jar"

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