This repository was archived by the owner on Aug 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
48 lines (43 loc) · 1.41 KB
/
build.xml
File metadata and controls
48 lines (43 loc) · 1.41 KB
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
<project name="INLOOP example checker" default="fail" basedir=".">
<path id="lib.thirdparty">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<property name="build.dir" value="/checker/scratch/build"/>
<property name="checker.input" value="/checker/input"/>
<property name="checker.output" value="/checker/output/storage"/>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac destdir="${build.dir}" debug="true" includeantruntime="false">
<src path="${checker.input}"/>
<src path="${current_task}/tests"/>
<include name="**/*.java"/>
<classpath refid="lib.thirdparty"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="test" depends="compile">
<junit fork="true" forkmode="once" haltonfailure="true"
printsummary="true" tempdir="${build.dir}">
<classpath>
<path refid="lib.thirdparty"/>
<pathelement path="${build.dir}"/>
</classpath>
<formatter type="xml"/>
<batchtest todir="${checker.output}">
<fileset dir="${current_task}/tests">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="fibonacci">
<antcall target="test">
<param name="current_task" value="fibonacci"/>
</antcall>
</target>
<target name="fail">
<fail message="Must specify a target."/>
</target>
</project>