nes-proj/tools/cooja/apps/avrora/build.xml

57 lines
1.6 KiB
XML
Raw Normal View History

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}"/>
<delete file="${cooja_avrora_jar}"/>
2009-02-22 16:45:01 +00:00
</target>
<target name="compile" depends="init">
<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}"/>
<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>