-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.xml
45 lines (41 loc) · 1.29 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
<?xml version="1.0"?>
<project name="Geco on Travis" default="test" basedir=".">
<description>Specific build file for Travis CI</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<target name="init">
<mkdir dir="${build}"/>
<copy todir="${build}">
<fileset dir="${src}" includes="**/*.properties"/>
<fileset dir="${src}" includes="resources/**/*.*"/>
<fileset file="${src}/version.prop"/>
</copy>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" includeantruntime="no">
<classpath>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="test" depends="compile">
<junit failureproperty="junit.failure">
<classpath>
<pathelement path="${build}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
<batchtest fork="yes">
<formatter type="brief" usefile="false"/>
<fileset dir="${src}">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
<fail if="junit.failure" message="Test failed"/>
</target>
</project>