Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / juavobjects / build.xml
blob79f599808a26a424b0c1b3197c60a94055a858e7
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"/>
9         
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" />
14   </target>
15   
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}"/> 
22     </manifest>
24     <jar destfile="${jar.file}"
25          basedir="${classes.dir}"
26          includes="**/*.class"
27          manifest="MANIFEST.MF"
28          />
30   </target>
32   <target name="clean">
33        <delete dir="build" />
34        <delete>
35          <fileset dir="." includes="${jar.file}"/>
36          <fileset file="MANIFEST.MF"/>
37        </delete>  
38   </target>
39   
40   <target name="package" depends="compile,jar" />
41 </project>