1 <project default="package">
3 <property name="version.num" value="0.1.1" />
4 <property name="build.dir" value="../../../../../build/juavtalk"/>
5 <property name="jar.file" value="${build.dir}/juavtalk.jar"/>
6 <property name="src.dir" value="src"/>
7 <property name="classes.dir" value="${build.dir}/classes"/>
10 <target name="compile" depends="clean">
11 <mkdir dir="${build.dir}" />
12 <mkdir dir="${classes.dir}" />
13 <javac srcdir="${src.dir}" destdir="${classes.dir}" />
16 <target name="jar" depends="compile">
18 <manifest file="${build.dir}/MANIFEST.MF">
19 <attribute name="Built-By" value="${user.name}" />
20 <attribute name="Implementation-Version" value="${version.num}"/>
23 <jar destfile="${jar.file}"
24 basedir="${classes.dir}"
26 manifest="${build.dir}/MANIFEST.MF"
31 <delete dir="${build.dir}" />
33 <fileset dir="." includes="${jar.file}"/>
37 <target name="package" depends="compile,jar" />