1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<?xml version="1.0"?>
<project name="Buoy" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="." />
<property name="build" value="compiled" />
<property name="docs" value="docs" />
<property name="dist" value="." />
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<!-- Create the docs directory structure used by documentation -->
<mkdir dir="${docs}" />
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="on" target="1.4" source="1.4" />
</target>
<target name="dist" depends="compile">
<!-- Copy all necessary files into ${build}, then create the jar file -->
<jar jarfile="${dist}/Buoy.jar" basedir="${build}" />
</target>
<target name="docs" depends="init">
<javadoc packagenames="buoy.*"
sourcepath="${src}"
defaultexcludes="yes"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="Buoy Documentation"
public="true">
<doctitle><![CDATA[<h1>Buoy</h1>]]></doctitle>
<bottom><![CDATA[<i>Written by Peter Eastman.</i>]]></bottom>
</javadoc>
</target>
<target name="clean">
<!-- Delete the ${build} and ${docs} directory trees -->
<delete dir="${build}" />
<delete dir="${docs}" />
</target>
</project>
|