osd-contiki/tools/cooja/apps/avrora/build.xml

55 lines
1.5 KiB
XML
Raw Normal View History

2009-02-22 17:45:01 +01: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 16:20:22 +01:00
<property name="avrora_jar" value="${lib}/avrora-small.jar"/>
2009-02-22 17:45:01 +01: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}"/>
<delete file="${cooja_avrora_jar}"/>
2009-02-22 17:45:01 +01:00
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" debug="on">
<classpath>
<pathelement location="${avrora_jar}"/>
<pathelement location="${cooja_jar}"/>
</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>