-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.xml
51 lines (45 loc) · 1.9 KB
/
tasks.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
<?xml version="1.0"?>
<project name="tasks">
<property file="build.properties"/>
<target name="compile" description="Compile Java source.">
<mkdir dir="${build.dir}/classes"/>
<javac srcdir="${src.dir}" debug="on" destdir="${build.dir}/classes">
<classpath refid="compile.classpath"/>
</javac>
<copy toDir="${build.dir}/classes">
<fileset dir="${src.dir}" excludes="**/*.java"/>
</copy>
</target>
<target name="test.compile" depends="compile" description="Compile test source.">
<mkdir dir="${build.dir}/tests"/>
<javac srcdir="${test.dir}" debug="on" destdir="${build.dir}/tests">
<classpath path="${build.dir}/classes"/>
<classpath refid="compile.classpath"/>
</javac>
<copy toDir="${build.dir}/tests">
<fileset dir="${test.dir}" excludes="**/*.java"/>
</copy>
<mkdir dir="${build.dir}/${junit.report.dir}"/>
</target>
<target name="tests" depends="test.compile" description="Execute tests.">
<echo message="running tests"/>
<junit printsummary="yes" haltonerror="yes" haltonfailure="yes" fork="yes">
<classpath>
<path refid="compile.classpath"/>
<pathelement location="${build.dir}/classes"/>
<pathelement location="${build.dir}/tests"/>
</classpath>
<batchtest fork="yes" todir="${build.dir}/${junit.report.dir}">
<fileset dir="${test.dir}">
<include name="${test.includes}"/>
<exclude name="**/AllTests.java"/>
</fileset>
</batchtest>
<!--<test name="com.gotobject.junit.ConditionalPerfJunitClassRunnerTest"/>-->
</junit>
</target>
<target name="clean"
description="Remove generated files.">
<delete dir="${build.dir}"/>
</target>
</project>