-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
49 lines (38 loc) · 1.22 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
<?xml version="1.0"?>
<project name="httpQL" default="run">
<property file="project.properties" />
<path id="binpath">
<path location="${bin}" />
<fileset dir="libs">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile_ragel">
<exec command="ragel -J ${ragel_src}/${ragel_file}.rl" />
<move file="${ragel_src}/${ragel_file}.java" tofile="${dst}/${ragel_file}.java" />
</target>
<target name="compile-tests">
<javac srcdir="tests" destdir="bin" />
</target>
<target name="compile" depends="compile_ragel, compile-tests">
<javac srcdir="${dst}"
destdir="bin"
>
<classpath refid="binpath" />
</javac>
</target>
<target name="test" depends="compile">
<junit haltonfailure="true">
<classpath refid="binpath" />
<formatter type="plain" usefile="false" />
<formatter type="plain" />
<test name="com.httpQL.AllTests" />
</junit>
</target>
<target name="run" depends="compile">
<java classname="com.httpQL.Runner"
classpath="${bin}">
<classpath refid="binpath" />
</java>
</target>
</project>