added target that instructs the jvm to show a message box at errors, useful for debugging Contiki nodes
This commit is contained in:
parent
34584fc05e
commit
563a9f1b8e
1 changed files with 35 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<project name="COOJA Simulator" default="help" basedir=".">
|
<project name="COOJA Simulator" default="run" basedir=".">
|
||||||
<property name="java" location="java"/>
|
<property name="java" location="java"/>
|
||||||
<property name="build" location="build"/>
|
<property name="build" location="build"/>
|
||||||
<property name="javadoc" location="javadoc"/>
|
<property name="javadoc" location="javadoc"/>
|
||||||
|
@ -9,16 +9,16 @@
|
||||||
<property name="lib" location="lib"/>
|
<property name="lib" location="lib"/>
|
||||||
<property name="args" value="" />
|
<property name="args" value="" />
|
||||||
|
|
||||||
<target name="help">
|
<target name="help">
|
||||||
<echo>
|
<echo>
|
||||||
The COOJA Simulator
|
The COOJA Simulator
|
||||||
|
|
||||||
> ant run
|
> ant run
|
||||||
Starts COOJA simulator
|
Starts COOJA simulator
|
||||||
</echo>
|
</echo>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ The COOJA Simulator
|
||||||
</javadoc>
|
</javadoc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="init">
|
<target name="compile" depends="init">
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
<javac srcdir="${java}" destdir="${build}" debug="on">
|
<javac srcdir="${java}" destdir="${build}" debug="on">
|
||||||
<classpath>
|
<classpath>
|
||||||
|
@ -55,16 +55,29 @@ The COOJA Simulator
|
||||||
<target name="clean" depends="init">
|
<target name="clean" depends="init">
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build}"/>
|
||||||
<delete dir="${dist}"/>
|
<delete dir="${dist}"/>
|
||||||
<ant antfile="build.xml" dir="apps/mrm" target="clean" inheritAll="false"/>
|
<ant antfile="build.xml" dir="apps/mrm" target="clean" inheritAll="false"/>
|
||||||
<ant antfile="build.xml" dir="apps/mspsim" target="clean" inheritAll="false"/>
|
<ant antfile="build.xml" dir="apps/mspsim" target="clean" inheritAll="false"/>
|
||||||
<ant antfile="build.xml" dir="apps/avrora" target="clean" inheritAll="false"/>
|
<ant antfile="build.xml" dir="apps/avrora" target="clean" inheritAll="false"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="run" depends="init, compile, jar, copy configs">
|
<target name="run" depends="init, compile, jar, copy configs">
|
||||||
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="512m">
|
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="512m">
|
||||||
<sysproperty key="user.language" value="en"/>
|
<sysproperty key="user.language" value="en"/>
|
||||||
<arg line="${args}"/>
|
<arg line="${args}"/>
|
||||||
<env key="LD_LIBRARY_PATH" value="."/>
|
<env key="LD_LIBRARY_PATH" value="."/>
|
||||||
|
<classpath>
|
||||||
|
<pathelement path="${build}"/>
|
||||||
|
<pathelement location="lib/jdom.jar"/>
|
||||||
|
<pathelement location="lib/log4j.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</java>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="run_errorbox" depends="init, compile, jar, copy configs">
|
||||||
|
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="512m">
|
||||||
|
<sysproperty key="user.language" value="en"/>
|
||||||
|
<jvmarg value="-XX:+ShowMessageBoxOnError"/>
|
||||||
|
<env key="LD_LIBRARY_PATH" value="."/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement path="${build}"/>
|
<pathelement path="${build}"/>
|
||||||
<pathelement location="lib/jdom.jar"/>
|
<pathelement location="lib/jdom.jar"/>
|
||||||
|
@ -76,7 +89,7 @@ The COOJA Simulator
|
||||||
<target name="runprof" depends="init, compile, jar, copy configs">
|
<target name="runprof" depends="init, compile, jar, copy configs">
|
||||||
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI">
|
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI">
|
||||||
<arg line="${args}"/>
|
<arg line="${args}"/>
|
||||||
<env key="LD_LIBRARY_PATH" value="."/>
|
<env key="LD_LIBRARY_PATH" value="."/>
|
||||||
<jvmarg line="-agentlib:yjpagent"/>
|
<jvmarg line="-agentlib:yjpagent"/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement path="${build}"/>
|
<pathelement path="${build}"/>
|
||||||
|
@ -89,7 +102,7 @@ The COOJA Simulator
|
||||||
<target name="run_bigmem" depends="init, compile, jar, copy configs">
|
<target name="run_bigmem" depends="init, compile, jar, copy configs">
|
||||||
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="1536m">
|
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="1536m">
|
||||||
<arg line="${args}"/>
|
<arg line="${args}"/>
|
||||||
<env key="LD_LIBRARY_PATH" value="."/>
|
<env key="LD_LIBRARY_PATH" value="."/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement path="${build}"/>
|
<pathelement path="${build}"/>
|
||||||
<pathelement location="lib/jdom.jar"/>
|
<pathelement location="lib/jdom.jar"/>
|
||||||
|
@ -99,15 +112,15 @@ The COOJA Simulator
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="jar_cooja">
|
<target name="jar" depends="jar_cooja">
|
||||||
<ant antfile="build.xml" dir="apps/mrm" target="jar" inheritAll="false"/>
|
<ant antfile="build.xml" dir="apps/mrm" target="jar" inheritAll="false"/>
|
||||||
<ant antfile="build.xml" dir="apps/mspsim" target="jar" inheritAll="false"/>
|
<ant antfile="build.xml" dir="apps/mspsim" target="jar" inheritAll="false"/>
|
||||||
<ant antfile="build.xml" dir="apps/avrora" target="jar" inheritAll="false"/>
|
<ant antfile="build.xml" dir="apps/avrora" target="jar" inheritAll="false"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="run_nogui" depends="init, compile, jar, copy configs">
|
<target name="run_nogui" depends="init, compile, jar, copy configs">
|
||||||
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="512m">
|
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI" maxmemory="512m">
|
||||||
<arg line="-nogui ${args}"/>
|
<arg line="-nogui ${args}"/>
|
||||||
<env key="LD_LIBRARY_PATH" value="."/>
|
<env key="LD_LIBRARY_PATH" value="."/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement path="${build}"/>
|
<pathelement path="${build}"/>
|
||||||
<pathelement location="lib/jdom.jar"/>
|
<pathelement location="lib/jdom.jar"/>
|
||||||
|
|
Loading…
Reference in a new issue