-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
73 lines (60 loc) · 2.84 KB
/
build.xml
File metadata and controls
73 lines (60 loc) · 2.84 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="The hello world demo.">
<description>
This file is used to run the hello world demo.
NOTE: Before running the tests, you must have already built
the sphinx-4 sources by typing "ant" in the top level
sphinx4 directory.
</description>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * Properties common to all tests * -->
<!-- * * -->
<!-- ********************************************************** -->
<property name="top_dir" value="../../.."/>
<property name="build_dir" value="${top_dir}/bld"/>
<property name="classes_dir" value="${build_dir}/classes"/>
<property name="lib_dir" value="${build_dir}/lib"/>
<path id="run.classpath">
<pathelement path="${classes_dir}"/>
<pathelement location="${top_dir}/lib/jsapi.jar"/>
</path>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * The 'none' target. * -->
<!-- * * -->
<!-- ********************************************************** -->
<target name="none">
<echo>Type 'ant -projecthelp' for possible targets.</echo>
</target>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * Compile all the test code. * -->
<!-- * * -->
<!-- ********************************************************** -->
<target name="all"
description="Compiles all the tests.">
<javac debug="true"
source="1.4"
deprecation="true"
destdir="${classes_dir}"
classpath="${classes_dir}:${top_dir}/lib/jsapi.jar"
srcdir="."/>
</target>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * Runs the hello world demo. * -->
<!-- * * -->
<!-- ********************************************************** -->
<target name="run"
description="Runs the hello world demo."
depends="all">
<java classname="demo.sphinx.helloworld.HelloWorld"
fork="true"
maxmemory="128m">
<sysproperty key="frontend" value="epFrontEnd"/>
<classpath refid="run.classpath"/>
<arg value="helloworld.config.xml"/>
</java>
</target>
</project>