forked from CorsixTH/CorsixTH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
32 lines (27 loc) · 940 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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>