Launch5j/etc/example/build.xml

30 lines
1.0 KiB
XML
Raw Normal View History

<project name="com.muldersoft.l5j.example" default="dist" basedir=".">
<description>Launch5j example code</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="init">
<mkdir dir="${dist}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${build}" source="1.8" target="1.8" debuglevel="lines,vars,source" includeantruntime="false"/>
</target>
<target name="dist" depends="clean,compile" description="generate the distribution">
<jar destfile="${dist}/example.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="com.muldersoft.l5j.example.Main"/>
</manifest>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>