Fix building of powertracker

This commit is contained in:
Moritz 'Morty' Strübe 2012-04-10 15:44:31 +02:00 committed by Fredrik Osterlind
parent 1b13b69814
commit 74b2751072
2 changed files with 6 additions and 3 deletions

View file

@ -1,17 +1,18 @@
<?xml version="1.0"?>
<project name="Cooja: Power Tracker" default="jar" basedir=".">
<property name="cooja" location="../.."/>
<property name="cooja" location="../.."/>
<property name="cooja_jar" value="${cooja}/dist/cooja.jar"/>
<available file="${cooja_jar}" type="file" property="cooja_jar_exists"/>
<fail message="COOJA jar not found at '${cooja_jar}'. Please compile COOJA first." unless="cooja_jar_exists"/>
<target name="init">
<tstamp/>
</target>
<target name="compile" depends="init">
<available file="${cooja_jar}" type="file" property="cooja_jar_exists"/>
<fail message="COOJA jar not found at '${cooja_jar}'. Please compile COOJA first." unless="cooja_jar_exists"/>
<mkdir dir="build"/>
<javac srcdir="java" destdir="build" debug="on" includeantruntime="false">
<classpath>

View file

@ -96,6 +96,7 @@ The COOJA Simulator
<ant antfile="build.xml" dir="apps/avrora" target="clean" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/serial_socket" target="clean" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/collect-view" target="clean" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/powertracker" target="clean" inheritAll="false"/>
</target>
<target name="run" depends="init, compile, jar, copy configs">
@ -189,6 +190,7 @@ The COOJA Simulator
<ant antfile="build.xml" dir="apps/avrora" target="jar" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/serial_socket" target="jar" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/collect-view" target="jar" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/powertracker" target="jar" inheritAll="false"/>
</target>
<target name="run_nogui" depends="init, compile, jar, copy configs">