[go: up one dir, main page]

Menu

[a38bb2]: / build.xml  Maximize  Restore  History

Download this file

74 lines (72 with data), 1.8 kB

 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
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is an ant build file. See: "http://jakarta.apache.org/ant"-->
<project default="jar" name="MekHQ">
<!-- Global properties for this build -->
<property name="src" value="src">
</property>
<property name="build" value="${basedir}/classes">
</property>
<property name="mekhq" value="MekHQ.jar">
</property>
<property name="jarmanifest" value="manifest.txt">
</property>
<path id="project.classpath">
<pathelement path="${build}">
</pathelement>
<fileset dir="${basedir}">
<include
name="MegaMek.jar"
>
</include>
<include
name="MegaMekLab.jar">
</include>
</fileset>
</path>
<target depends="clean" description="Initialize system before build" name="init">
<!-- Create the time stamp -->
<tstamp>
</tstamp>
<!-- Ensure that the build directory exists. -->
<mkdir dir="${build}">
</mkdir>
</target>
<target depends="init" description="Compile java sources into class files" name="compile">
<javac
classpathref="project.classpath"
debug="true"
deprecation="true"
destdir="${build}"
srcdir="${src}"
target="1.6"
source="1.6"
>
</javac>
</target>
<target description="Remove all compiled and generated files" name="clean">
<!-- Delete the ${build} directory tree -->
<delete file="${mekhq}">
</delete>
<delete dir="${build}">
</delete>
</target>
<target
depends="compile"
description="Create application jar file"
name="jar"
>
<delete file="${mekhq}">
</delete>
<jar
basedir="${build}"
compress="true"
destfile="${mekhq}"
excludes=""
includes="**"
jarfile="${mekhq}"
manifest="manifest.txt"
>
<fileset dir="${src}" includes="**/*.properties" />
</jar>
</target>
</project>