added export-jar target, updated help
This commit is contained in:
parent
cf9acf4748
commit
09446c0ee7
1 changed files with 20 additions and 8 deletions
|
@ -23,18 +23,16 @@ The COOJA Simulator
|
||||||
Start COOJA, show error box if process terminates unexpectedly.
|
Start COOJA, show error box if process terminates unexpectedly.
|
||||||
> ant run_errorbox
|
> ant run_errorbox
|
||||||
|
|
||||||
Start COOJA and immediately loads simulation in sim.csc
|
Start COOJA and immediately load simulation in sim.csc
|
||||||
> java -mx512m -jar dist/cooja.jar -quickstart=sim.csc
|
> java -mx512m -jar dist/cooja.jar -quickstart=sim.csc
|
||||||
Start COOJA without GUI and run simulation in sim.csc
|
Start COOJA without GUI and run simulation in sim.csc
|
||||||
> java -mx512m -jar dist/cooja.jar -nogui=sim.csc
|
> java -mx512m -jar dist/cooja.jar -nogui=sim.csc
|
||||||
|
|
||||||
Build executable simulation JAR sim.jar from current projects and simulation in sim.csc
|
Build executable simulation JAR from mysim.csc
|
||||||
> ant jar
|
> ant export-jar -DCSC="c:/mysim.csc"
|
||||||
> cd build
|
|
||||||
build/> java -cp ".:../lib/jdom.jar:../lib/log4j.jar" se.sics.cooja.util.ExecuteJAR "/home/user/sim.csc" sim.jar
|
|
||||||
or
|
or
|
||||||
build/> java -cp ".;../lib/jdom.jar;../lib/log4j.jar" se.sics.cooja.util.ExecuteJAR "C:/home/sim.csc" sim.jar
|
> ant export-jar -DCSC="/home/user/sim.csc"
|
||||||
The output JAR is in build/sim.jar
|
The output JAR is saved to exported.jar
|
||||||
</echo>
|
</echo>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -42,6 +40,20 @@ The COOJA Simulator
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="export-jar" depends="init, jar">
|
||||||
|
<java fork="yes" dir="${build}" classname="se.sics.cooja.util.ExecuteJAR" maxmemory="512m">
|
||||||
|
<sysproperty key="user.language" value="en"/>
|
||||||
|
<arg file="${CSC}"/>
|
||||||
|
<arg file="exported.jar"/>
|
||||||
|
<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="javadoc" depends="init">
|
<target name="javadoc" depends="init">
|
||||||
<delete dir="${javadoc}" quiet="true"/>
|
<delete dir="${javadoc}" quiet="true"/>
|
||||||
<mkdir dir="${javadoc}/"/>
|
<mkdir dir="${javadoc}/"/>
|
||||||
|
|
Loading…
Reference in a new issue