2008-02-07 15:51:44 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<project name="MSPSim COOJA support" default="jar" basedir=".">
|
|
|
|
<property name="src" location="src"/>
|
|
|
|
<property name="build" location="build"/>
|
|
|
|
<property name="lib" location="lib"/>
|
2008-03-19 18:28:42 +01:00
|
|
|
<property name="javadoc" location="javadoc"/>
|
2009-08-12 09:41:30 +02:00
|
|
|
<property name="cooja" location="../.."/>
|
2008-02-07 15:51:44 +01:00
|
|
|
|
2009-08-12 09:41:30 +02:00
|
|
|
<property name="cooja_jar" value="${cooja}/dist/cooja.jar"/>
|
2008-12-03 10:55:26 +01:00
|
|
|
<property name="mspsim" location="../../../mspsim"/>
|
2008-02-07 15:51:44 +01:00
|
|
|
<property name="mspsim_jar" value="${lib}/mspsim.jar"/>
|
2009-08-12 09:41:30 +02:00
|
|
|
<property name="coffee" location="../../../coffee-manager"/>
|
|
|
|
<property name="coffee_jar" value="${lib}/coffee.jar"/>
|
2008-02-07 15:51:44 +01:00
|
|
|
<property name="cooja_mspsim_jar" value="${lib}/cooja_mspsim.jar"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
2008-12-03 10:55:26 +01:00
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
<mkdir dir="${lib}"/>
|
2008-02-07 15:51:44 +01:00
|
|
|
</target>
|
|
|
|
|
2008-12-03 10:55:26 +01:00
|
|
|
<target name="clean">
|
2008-02-07 15:51:44 +01:00
|
|
|
<delete dir="${build}"/>
|
2008-12-03 10:55:26 +01:00
|
|
|
<delete dir="${lib}"/>
|
2008-02-07 15:51:44 +01:00
|
|
|
</target>
|
|
|
|
|
2008-12-03 10:55:26 +01:00
|
|
|
<target name="mspsim" depends="init">
|
|
|
|
<copy todir="${lib}" file="${mspsim}/mspsim.jar" />
|
2009-10-27 11:19:07 +01:00
|
|
|
<copy todir="${lib}" file="${mspsim}/lib/jipv6.jar" />
|
2008-12-03 10:55:26 +01:00
|
|
|
</target>
|
|
|
|
|
2009-08-12 09:41:30 +02:00
|
|
|
<target name="coffee" depends="init">
|
|
|
|
<ant antfile="build.xml" dir="${coffee}" target="jar" inheritAll="false"/>
|
|
|
|
<copy todir="${lib}" file="${coffee}/coffee.jar" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init,mspsim,coffee">
|
2011-03-21 21:39:45 +01:00
|
|
|
<javac srcdir="${src}" destdir="${build}" debug="on"
|
|
|
|
includeantruntime="false">
|
2008-02-07 15:51:44 +01:00
|
|
|
<classpath>
|
2008-12-03 10:55:26 +01:00
|
|
|
<pathelement location="${mspsim_jar}"/>
|
2009-08-12 09:41:30 +02:00
|
|
|
<pathelement location="${coffee_jar}"/>
|
2008-02-07 15:51:44 +01:00
|
|
|
<pathelement location="${cooja_jar}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2008-12-03 10:55:26 +01:00
|
|
|
<target name="javadoc" depends="compile">
|
2008-03-18 17:56:14 +01:00
|
|
|
<delete dir="${javadoc}" quiet="true"/>
|
|
|
|
<mkdir dir="${javadoc}/"/>
|
|
|
|
<javadoc destdir="${javadoc}">
|
|
|
|
<fileset dir="${src}/" includes="**/*.java"/>
|
|
|
|
<classpath>
|
2008-12-03 10:55:26 +01:00
|
|
|
<pathelement location="${mspsim_jar}"/>
|
2009-08-12 09:41:30 +02:00
|
|
|
<pathelement location="${coffee_jar}"/>
|
2008-03-18 17:56:14 +01:00
|
|
|
<pathelement location="${cooja_jar}"/>
|
|
|
|
</classpath>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2008-09-01 14:47:54 +02:00
|
|
|
<target name="jar" depends="init, compile">
|
2008-02-07 15:51:44 +01:00
|
|
|
<jar destfile="${cooja_mspsim_jar}" basedir="${build}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Class-Path" value="."/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|