1 <project default="package">
3 <property name="version.num" value="0.1.1" />
4 <property name="build.dir" value="../../../../../build/"/>
5 <property name="jar.file" value="${build.dir}/uavobject-synthetics/java/juavobjects.jar"/>
6 <property name="src.dir" value="${build.dir}/uavobject-synthetics/java/src"/>
7 <property name="classes.dir" value="${build.dir}/uavobject-synthetics/java/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}" classpath="${build.dir}/juavtalk/juavtalk.jar" />
16 <target name="jar" depends="compile">
18 <manifest file="MANIFEST.MF">
19 <attribute name="Built-By" value="${user.name}" />
20 <attribute name="Implementation-Version"
21 value="${version.num}"/>
24 <jar destfile="${jar.file}"
25 basedir="${classes.dir}"
27 manifest="MANIFEST.MF"
33 <delete dir="build" />
35 <fileset dir="." includes="${jar.file}"/>
36 <fileset file="MANIFEST.MF"/>
40 <target name="package" depends="compile,jar" />