-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (43 loc) · 1.53 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
<project default="all">
<property name="unit-tst-dir" location="test/unit" />
<property name="TALK" value="true" />
<property name="src-dir" location="src" />
<path id="classpath.base">
</path>
<path id="classpath.test">
<pathelement location="lib/junit-4.11.jar" />
<pathelement location="lib/hamcrest-core-1.3.jar" />
<pathelement location="${unit-tst-dir}" />
<pathelement location="${src-dir}"/>
<path refid="classpath.base" />
</path>
<target name="compile-test" depends="compile-source">
<javac srcdir="${unit-tst-dir}"
verbose="${TALK}"
>
<classpath refid="classpath.test"/>
</javac>
</target>
<target name="clean-compile-test">
<delete verbose="${TALK}">
<fileset dir="${unit-tst-dir}" includes="**/*.class" />
</delete>
</target>
<target name="test" depends="compile-test">
<junit>
<classpath refid="classpath.test" />
<formatter type="brief" usefile="false" />
<test name="TestLinearEquationSystem" />
<test name="TestDeterminant" />
</junit>
</target>
<target name="compile-source">
<javac srcdir="${src-dir}" verbose="${TALK}"/>
</target>
<target name="clean" depends="clean-compile-test">
<delete verbose="${TALK}">
<fileset dir="${src-dir}" includes="**/*.class" />
</delete>
</target>
<target name="all" depends="test" />
</project>