cooja ant run automatically builds jars

This commit is contained in:
fros4943 2008-09-01 12:47:54 +00:00
parent 822726f817
commit 9ea58d343b
3 changed files with 6 additions and 7 deletions

View file

@ -24,7 +24,7 @@
<delete dir="${build}"/>
</target>
<target name="jar" depends="clean, init, compile">
<target name="jar" depends="init, compile">
<jar destfile="${lib}/mrm.jar" basedir="${build}">
<fileset dir="images"/>
<manifest>

View file

@ -20,7 +20,7 @@
<delete file="${cooja_mspsim_jar}"/>
</target>
<target name="compile" depends="init, clean">
<target name="compile" depends="init">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" debug="on">
<classpath>
@ -42,7 +42,7 @@
</javadoc>
</target>
<target name="jar" depends="clean, init, compile">
<target name="jar" depends="init, compile">
<jar destfile="${cooja_mspsim_jar}" basedir="${build}">
<manifest>
<attribute name="Class-Path" value="."/>

View file

@ -57,7 +57,7 @@ The COOJA Simulator
<delete dir="${dist}"/>
</target>
<target name="run" depends="init, compile, copy configs">
<target name="run" depends="init, compile, jar, copy configs">
<java fork="yes" dir="${build}" classname="se.sics.cooja.GUI">
<arg line="${args}"/>
<env key="LD_LIBRARY_PATH" value="."/>
@ -81,8 +81,7 @@ The COOJA Simulator
</java>
</target>
<target name="jar" depends="init">
<ant antfile="build.xml" dir="." target="jar_cooja" inheritAll="false"/>
<target name="jar" depends="jar_cooja">
<ant antfile="build.xml" dir="apps/mrm" target="jar" inheritAll="false"/>
<ant antfile="build.xml" dir="apps/mspsim" target="jar" inheritAll="false"/>
</target>
@ -114,7 +113,7 @@ The COOJA Simulator
</exec>
</target>
<target name="jar_cooja" depends="init, clean, compile, copy configs">
<target name="jar_cooja" depends="init, compile, copy configs">
<mkdir dir="${dist}"/>
<jar destfile="${dist}/cooja.jar" basedir="${build}">
<manifest>