-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
50 lines (42 loc) · 1.36 KB
/
build.xml
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
<?xml version="1.0"?>
<project name="Headless Radio Logger" default="jar" basedir=".">
<property name="src" location="java"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="cooja" location="../.."/>
<property name="cooja_jar" value="${cooja}/dist/cooja.jar"/>
<condition property="cooja_jar_exists">
<available file="${cooja_jar}"/>
</condition>
<target name="check_jar" unless="cooja_jar_exists">
<echo message="Contiki's cooja.jar not found! Edit build.xml, and update the cooja_jar property"/>
<fail/>
</target>
<target name="init" depends="check_jar">
<tstamp/>
</target>
<target name="compile" depends="init">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" debug="on">
<classpath>
<pathelement path="."/>
<pathelement location="${cooja_jar}"/>
</classpath>
</javac>
</target>
<target name="clean" depends="init">
<delete dir="${build}"/>
<delete dir="${lib}"/>
</target>
<target name="jar" depends="init, compile, copy">
<mkdir dir="${lib}"/>
<jar destfile="${lib}/headless_radiologger.jar" basedir="${build}">
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>
<target name="copy" depends="init">
<mkdir dir="${build}"/>
</target>
</project>