2009-02-22 16:45:01 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<project name="Avrora COOJA support" default="jar" basedir=".">
|
|
|
|
<property name="src" location="src"/>
|
|
|
|
<property name="build" location="build"/>
|
|
|
|
<property name="lib" location="lib"/>
|
|
|
|
<property name="javadoc" location="javadoc"/>
|
|
|
|
<property name="cooja" location="../.."/>
|
|
|
|
|
|
|
|
<property name="cooja_jar" value="${cooja}/dist/cooja.jar"/>
|
2009-02-25 15:20:22 +00:00
|
|
|
<property name="avrora_jar" value="${lib}/avrora-small.jar"/>
|
2009-02-22 16:45:01 +00:00
|
|
|
<property name="cooja_avrora_jar" value="${lib}/cooja_avrora.jar"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
<mkdir dir="${lib}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${build}"/>
|
2009-03-11 13:49:47 +00:00
|
|
|
<delete file="${cooja_avrora_jar}"/>
|
2009-02-22 16:45:01 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
2011-03-21 20:39:45 +00:00
|
|
|
<javac srcdir="${src}" destdir="${build}" debug="on"
|
|
|
|
includeantruntime="false">
|
2009-02-22 16:45:01 +00:00
|
|
|
<classpath>
|
|
|
|
<pathelement location="${avrora_jar}"/>
|
|
|
|
<pathelement location="${cooja_jar}"/>
|
2009-03-19 14:47:36 +00:00
|
|
|
<pathelement location="${cooja}/apps/mspsim/build"/>
|
2009-02-22 16:45:01 +00:00
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="javadoc" depends="compile">
|
|
|
|
<delete dir="${javadoc}" quiet="true"/>
|
|
|
|
<mkdir dir="${javadoc}/"/>
|
|
|
|
<javadoc destdir="${javadoc}">
|
|
|
|
<fileset dir="${src}/" includes="**/*.java"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${avrora_jar}"/>
|
|
|
|
<pathelement location="${cooja_jar}"/>
|
|
|
|
</classpath>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="init, compile">
|
|
|
|
<jar destfile="${cooja_avrora_jar}" basedir="${build}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Class-Path" value="."/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|