added jar target

This commit is contained in:
fros4943 2007-11-01 17:34:36 +00:00
parent 8e3294c7d5
commit 6b6a911185

View file

@ -4,6 +4,7 @@
<property name="java" location="src"/> <property name="java" location="src"/>
<property name="build" location="build"/> <property name="build" location="build"/>
<property name="lib" location="lib"/> <property name="lib" location="lib"/>
<property name="dist" location="dist"/>
<property name="args" value=""/> <property name="args" value=""/>
<target name="init"> <target name="init">
@ -33,6 +34,7 @@ Starts demo application listening on COM1 and tracking the first node.
<target name="clean" depends="init"> <target name="clean" depends="init">
<delete dir="${build}"/> <delete dir="${build}"/>
<delete dir="${dist}"/>
</target> </target>
<target name="run" depends="init, compile"> <target name="run" depends="init, compile">
@ -46,4 +48,19 @@ Starts demo application listening on COM1 and tracking the first node.
</java> </java>
</target> </target>
<target name="jar" depends="clean, init, compile">
<mkdir dir="${dist}"/>
<jar destfile="${dist}/energest.jar" basedir="${build}">
<fileset dir="${build}"/>
<manifest>
<attribute name="Main-Class" value="Demo"/>
<attribute name="Class-Path" value=". jcommon-1.0.10.jar jfreechart-1.0.6.jar"/>
</manifest>
</jar>
<mkdir dir="${dist}"/>
<copy todir="${dist}">
<fileset dir="${lib}"/>
</copy>
</target>
</project> </project>