2008-07-09 23:18:05 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<project name="Sensor Data Collect with Contiki" default="dist" basedir=".">
|
|
|
|
<property name="java" location="src"/>
|
|
|
|
<property name="build" location="build"/>
|
|
|
|
<property name="lib" location="lib"/>
|
|
|
|
<property name="dist" location="dist"/>
|
|
|
|
<property name="contiki" location="../.."/>
|
|
|
|
<property name="archive" value="collect-demo.jar"/>
|
|
|
|
<property name="main" value="se.sics.contiki.collect.CollectServer"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
2008-09-03 13:35:21 +00:00
|
|
|
<javac srcdir="${java}" destdir="${build}" debug="true">
|
2008-07-09 23:18:05 +00:00
|
|
|
<classpath>
|
|
|
|
<fileset dir="${lib}">
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="dist" depends="compile">
|
|
|
|
<mkdir dir="${dist}"/>
|
|
|
|
<jar destfile="${dist}/${archive}" basedir="${build}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="${main}"/>
|
|
|
|
<attribute name="Class-Path" value="lib/jcommon-1.0.13.jar lib/jfreechart-1.0.10.jar"/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
<copy todir="${dist}" file="collect-init.script"/>
|
2008-07-10 14:52:59 +00:00
|
|
|
<copy todir="${dist}" file="sky-shell.ihex"/>
|
2008-07-09 23:18:05 +00:00
|
|
|
<mkdir dir="${dist}/lib"/>
|
|
|
|
<copy todir="${dist}/lib">
|
|
|
|
<fileset dir="${lib}">
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<mkdir dir="${dist}/tools"/>
|
|
|
|
<copy todir="${dist}/tools">
|
2008-07-10 14:52:59 +00:00
|
|
|
<fileset dir="${contiki}/tools/sky"/>
|
2008-07-09 23:18:05 +00:00
|
|
|
</copy>
|
2008-07-10 00:23:30 +00:00
|
|
|
<copy file="${contiki}/tools/cygwin/cygwin1.dll" todir="${dist}/tools"/>
|
2008-09-03 13:35:21 +00:00
|
|
|
<chmod dir="${dist}/tools" perm="a+x" includes="**/*"/>
|
2008-07-09 23:18:05 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run" depends="dist">
|
|
|
|
<java fork="yes" dir="${dist}" jar="${dist}/${archive}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${build}"/>
|
|
|
|
<delete dir="${dist}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|