added jar target
This commit is contained in:
parent
8e3294c7d5
commit
6b6a911185
@ -4,6 +4,7 @@
|
||||
<property name="java" location="src"/>
|
||||
<property name="build" location="build"/>
|
||||
<property name="lib" location="lib"/>
|
||||
<property name="dist" location="dist"/>
|
||||
<property name="args" value=""/>
|
||||
|
||||
<target name="init">
|
||||
@ -33,6 +34,7 @@ Starts demo application listening on COM1 and tracking the first node.
|
||||
|
||||
<target name="clean" depends="init">
|
||||
<delete dir="${build}"/>
|
||||
<delete dir="${dist}"/>
|
||||
</target>
|
||||
|
||||
<target name="run" depends="init, compile">
|
||||
@ -46,4 +48,19 @@ Starts demo application listening on COM1 and tracking the first node.
|
||||
</java>
|
||||
</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>
|
||||
|
Loading…
Reference in New Issue
Block a user