<project name="Regular Fragmentation" default="compile" basedir=".">
<!-- set global properties for this build --> 
<property name="src" value="./src/com/simonstl/fragment"/> 
<property name="build" value="./build/"/> 
<property name="documentation" value="./docs"/> 
<property name="docsource" value="./src"/>
<property name="overview" value="overview.htm"/> 
<property name="jarsource" value="${src}"/>

<target name="init"> 
<!-- Create the time stamp --> 
  <tstamp/> 
<!-- Create the build directory structure used by compile --> 
  <mkdir dir="${build}"/> 
  <mkdir dir="${documentation}"/> 
</target> 

<target name="compile" depends="init"> 
<!-- Compile the java code from ${src} into ${build} --> 
  <javac srcdir="${src}" destdir="${build}"/> 
</target> 

<target name="javadoc" depends="init"> 
<!-- Compile the java code from ${src} into ${build} --> 
  <javadoc sourcepath="${docsource}" destdir="${documentation}" packagenames="com.simonstl.fragment" Overview="${overview}"/> 
</target> 

<target name="jar" depends="init">
  <jar jarfile="fragmentxml.jar" basedir="${build}"/>
</target>

</project>