-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (66 loc) · 2.12 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
<?xml version="1.0"?>
<project name="Etyllica-Spriter" default="dist" basedir=".">
<property name="version" value="1.3" />
<property name="libcore" value="etyllica-spriter-${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="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>
</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" />
</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/etyllica/spriter/*"/>
<include name="**/br/com/etyllica/spriter/**"/>
</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>
<fileset dir="${lib.dir}">
<include name="etyllica*.jar"/>
</fileset>
</classpath>
<batchtest>
<fileset dir="${test.dir}">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
<formatter type="brief" usefile="false"/>
</junit>
</target>
</project>