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"/>
|
2008-02-07 15:51:44 +01:00
|
|
|
<property name="cooja" location="../.."/>
|
|
|
|
|
|
|
|
<property name="cooja_jar" value="${cooja}/dist/cooja.jar"/>
|
|
|
|
<property name="mspsim_jar" value="${lib}/mspsim.jar"/>
|
|
|
|
<property name="cooja_mspsim_jar" value="${lib}/cooja_mspsim.jar"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" depends="init">
|
|
|
|
<delete dir="${build}"/>
|
|
|
|
<delete file="${cooja_mspsim_jar}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init, clean">
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
<javac srcdir="${src}" destdir="${build}" debug="on">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="lib/mspsim.jar"/>
|
|
|
|
<pathelement location="${cooja_jar}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2008-03-18 17:56:14 +01:00
|
|
|
<target name="javadoc" depends="init">
|
|
|
|
<delete dir="${javadoc}" quiet="true"/>
|
|
|
|
<mkdir dir="${javadoc}/"/>
|
|
|
|
<javadoc destdir="${javadoc}">
|
|
|
|
<fileset dir="${src}/" includes="**/*.java"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="lib/mspsim.jar"/>
|
|
|
|
<pathelement location="${cooja_jar}"/>
|
|
|
|
</classpath>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2008-02-07 15:51:44 +01:00
|
|
|
<target name="jar" depends="clean, init, compile">
|
|
|
|
<jar destfile="${cooja_mspsim_jar}" basedir="${build}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Class-Path" value="."/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|