-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
40 lines (33 loc) · 1.07 KB
/
build.xml
File metadata and controls
40 lines (33 loc) · 1.07 KB
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
<?xml version="1.0"?>
<project name="COOJA: DBus" default="jar" basedir=".">
<property name="cooja" location="../.."/>
<property name="cooja_jar" value="../../dist/cooja.jar"/>
<property name="dbus_jar" value="/usr/share/java/dbus.jar"/>
<target name="init">
<tstamp/>
</target>
<target name="compile" depends="init">
<mkdir dir="build"/>
<javac srcdir="java" destdir="build" debug="on" includeantruntime="false">
<classpath>
<pathelement path="."/>
<pathelement location="${cooja_jar}"/>
<pathelement location="${dbus_jar}"/>
</classpath>
</javac>
</target>
<target name="clean" depends="init">
<delete dir="build"/>
</target>
<target name="jar" depends="clean, init, compile">
<mkdir dir="lib"/>
<jar destfile="lib/dbus.jar" basedir="build">
<manifest>
<attribute name="Class-Path" value=". ${dbus_jar}"/>
</manifest>
</jar>
</target>
<target name="jar_and_cooja_run" depends="jar">
<ant antfile="build.xml" dir="${cooja}" target="run" inheritAll="false"/>
</target>
</project>