-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
66 lines (58 loc) · 2.15 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<project name="Colobot map editor" default="debug" basedir=".">
<description>
Colobot map editor
</description>
<!-- Setup properties -->
<property name="src" location="src" />
<property name="build" location="bin" />
<property name="data" location="data" />
<property name="dist" location="dist" />
<property name="jarfile" location="Colobot-Map-Editor.jar" />
<property name="jarname" value="Colobot-Map-Editor.jar" />
<property name="classpath" value="lib/lwjgl.jar;lib/lwjgl_util.jar" />
<!-- Initializes build directory -->
<target name="init">
<tstamp />
<mkdir dir="${build}" />
</target>
<!-- Compile without debug informations -->
<target name="release" depends="init">
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${classpath}" />
</target>
<!-- Compile with debug informations -->
<target name="debug" depends="init">
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${classpath}"
debug="true" debuglevel="lines,vars,source" />
</target>
<!-- Generates JAR files -->
<target name="jar" depends="init">
<jar jarfile="${jarfile}" manifest="manifest.mf">
<fileset dir="${build}" />
<fileset dir="${data}" />
</jar>
</target>
<!-- Creates clean JAR file with release version -->
<target name="build" depends="clean,release,jar" />
<!-- Creates distribution -->
<target name="dist" depends="build">
<delete dir="${dist}" />
<mkdir dir="${dist}" />
<copy file="${jarfile}" tofile="${dist}/${jarname}" />
<copy file="LICENSE.TXT" tofile="${dist}/LICENSE.TXT" />
<copy todir="${dist}/lib">
<fileset dir="lib"/>
</copy>
<copy todir="${dist}/native">
<fileset dir="native"/>
</copy>
<copy todir="${dist}/licenses">
<fileset dir="licenses"/>
</copy>
</target>
<!-- Cleans build directory and removes JAR files -->
<target name="clean">
<delete file="${jarfile}" />
<delete dir="${build}" />
</target>
</project>