-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
84 lines (74 loc) · 2.54 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0"?>
<project name="Abby" default="dist" basedir=".">
<property name="version" value="1.1" />
<property name="etyllica-version" value="5.6.1" />
<property name="libcore" value="abby-${version}" />
<property name="src.dir" value="src/main/java" />
<property name="test.dir" value="src/test/java" />
<property name="build.dir" value="src/bin" />
<property name="lib.dir" value="libs"/>
<property name="maven.dir" value="maven"/>
<property name="reports.dir" value="tests"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path>
<target name="dist" depends="clean, package"/>
<target name="clean">
<delete includeemptydirs="true" >
<fileset dir="${build.dir}">
<exclude name="**/assets/*"/>
<exclude name="**/assets/**"/>
</fileset>
</delete>
<antcall target="init"/>
</target>
<target name="init">
<mkdir dir="${build.dir}" />
</target>
<target name="compile">
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" source="1.6" target="1.6" debug="off">
<classpath refid="classpath" />
<exclude name="**/examples/*"/>
<exclude name="**/examples/**"/>
</javac>
</target>
<target name="compile-tests">
<javac srcdir="${test.dir}" destdir="${build.dir}" includeantruntime="false" source="1.6" target="1.6" debug="off">
<classpath>
<fileset dir="${reports.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="package" depends="init, compile">
<jar destfile="${lib.dir}/${libcore}.jar">
<fileset dir="${build.dir}">
<include name="**/br/com/abby/*"/>
<include name="**/br/com/abby/**"/>
<include name="**/com/badlogic/gdx/*"/>
<include name="**/com/badlogic/gdx/**"/>
<include name="**/org/*"/>
<include name="**/org/**"/>
</fileset>
</jar>
</target>
<target name="test" depends="init, compile, compile-tests">
<junit printsummary="yes" haltonfailure="yes" showoutput="true">
<classpath>
<pathelement location="${build.dir}"/>
<fileset dir="${reports.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
<batchtest>
<fileset dir="${test.dir}">
<include name="**/*Test*.java"/>
<exclude name="**/*CoreTest*.java"/>
<exclude name="**/*AWT*.java"/>
</fileset>
</batchtest>
<formatter type="brief" usefile="false"/>
</junit>
</target>
</project>