-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
61 lines (55 loc) · 1.77 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
<?xml version="1.0"?>
<project name="xbot" default="test">
<property name="implementation.version" value="1.3.1" />
<property name="lib.dir" value="${basedir}/lib" />
<property name="build.dir" value="${basedir}/build" />
<property name="build.classes.dir" value="${build.dir}/classes" />
<property name="dist.dir" value="${build.dir}/dist" />
<path id="compile.path">
<fileset dir="${lib.dir}">
<include name="*.jar" />
<exclude name="*-javadoc.jar" />
<exclude name="*-sources.jar" />
</fileset>
</path>
<path id="src.path">
<dirset dir="${basedir}">
<include name="src" />
<!-- <include name="test" /> -->
</dirset>
</path>
<target name="clean">
<delete dir="${build.classes.dir}" />
</target>
<target name="compile">
<mkdir dir="${build.classes.dir}" />
<javac destdir="${build.classes.dir}"
debug="true"
encoding="utf8"
source="1.6"
target="1.6">
<classpath refid="compile.path" />
<src refid="src.path" />
</javac>
<copy todir="${build.classes.dir}/images">
<fileset dir="images" />
</copy>
</target>
<target name="test" depends="compile">
</target>
<target name="uberjar" depends="clean,test">
<jar destfile="${build.dir}/${ant.project.name}-all.jar">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Implementation-Version" value="${implementation.version}" />
<attribute name="Main-Class" value="com.practitest.xbot.Main" />
</manifest>
<fileset dir="${build.classes.dir}">
<exclude name="**/Test*" />
</fileset>
<zipgroupfileset dir="${lib.dir}">
<include name="*.jar" />
</zipgroupfileset>
</jar>
</target>
</project>