added target that instructs the jvm to show a message box at errors, useful for debugging Contiki nodes

This commit is contained in:
fros4943 2009-06-16 17:06:02 +00:00
parent 34584fc05e
commit 563a9f1b8e
1 changed files with 35 additions and 22 deletions

View File

@ -1,6 +1,6 @@
<?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="build" location="build"/>
<property name="javadoc" location="javadoc"/>
@ -73,6 +73,19 @@ The COOJA Simulator
</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>
<pathelement path="${build}"/>
<pathelement location="lib/jdom.jar"/>
<pathelement location="lib/log4j.jar"/>
</classpath>
</java>
</target>
<target name="runprof" depends="init, compile, jar, copy configs">
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI">
<arg line="${args}"/>