Skip to content

Commit

Permalink
Add Ant buildfile for LevelEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwoolley committed Feb 8, 2014
1 parent 38c462a commit fd0310f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions LevelEdit/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<project name="LevelEdit" default="dist" basedir=".">
<description>CorsixTH Level Editor</description>

<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>

<target name="init">
<mkdir dir="${build}"/>
</target>

<target name="compile" depends="init" description="compile LevelEdit">
<javac srcdir="${src}" destdir="${build}" includeantruntime="false"/>
<copy todir="${build}">
<fileset dir="${src}" includes="*.png" />
</copy>
</target>

<target name="dist" depends="compile" description="generate JAR">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/LevelEdit.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="com.corsixth.leveledit.Main"/>
</manifest>
</jar>
</target>

<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>

0 comments on commit fd0310f

Please sign in to comment.