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

View file

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

View file

@ -57,7 +57,7 @@ The COOJA Simulator
<delete dir="${dist}"/> <delete dir="${dist}"/>
</target> </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"> <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="."/>
@ -81,8 +81,7 @@ The COOJA Simulator
</java> </java>
</target> </target>
<target name="jar" depends="init"> <target name="jar" depends="jar_cooja">
<ant antfile="build.xml" dir="." target="jar_cooja" inheritAll="false"/>
<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"/>
</target> </target>
@ -114,7 +113,7 @@ The COOJA Simulator
</exec> </exec>
</target> </target>
<target name="jar_cooja" depends="init, clean, compile, copy configs"> <target name="jar_cooja" depends="init, compile, copy configs">
<mkdir dir="${dist}"/> <mkdir dir="${dist}"/>
<jar destfile="${dist}/cooja.jar" basedir="${build}"> <jar destfile="${dist}/cooja.jar" basedir="${build}">
<manifest> <manifest>