mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
added ant script to compile examples
This commit is contained in:
parent
0054bab730
commit
780561d80a
5
tools/cooja/examples/README
Normal file
5
tools/cooja/examples/README
Normal file
@ -0,0 +1,5 @@
|
||||
This folder contains a number of COOJA project directory examples.
|
||||
These can be imported in COOJA using from the "Settings" > "Manage Project Directories" menu option.
|
||||
|
||||
The examples need to be compiled; the Ant build.xml can be used:
|
||||
> ant compile
|
51
tools/cooja/examples/build.xml
Normal file
51
tools/cooja/examples/build.xml
Normal file
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project name="COOJA Examples" default="compile" basedir=".">
|
||||
<property name="cooja_jar" value="../dist/cooja.jar"/>
|
||||
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init">
|
||||
<ant antfile="build.xml" dir=".." target="jar"/>
|
||||
|
||||
<javac srcdir="project_debug/java" destdir="project_debug/java">
|
||||
<classpath>
|
||||
<pathelement location="${cooja_jar}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<javac srcdir="project_new_interface/java" destdir="project_new_interface/java">
|
||||
<classpath>
|
||||
<pathelement location="${cooja_jar}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<javac srcdir="project_new_plugin/java" destdir="project_new_plugin/java">
|
||||
<classpath>
|
||||
<pathelement location="${cooja_jar}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<javac srcdir="project_new_radiomedium/java" destdir="project_new_radiomedium/java">
|
||||
<classpath>
|
||||
<pathelement location="${cooja_jar}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<javac srcdir="project_uaodv/java" destdir="project_uaodv/java">
|
||||
<classpath>
|
||||
<pathelement location="${cooja_jar}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="init">
|
||||
<delete>
|
||||
<fileset dir="." includes="**/*.class"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user