-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
78 lines (69 loc) · 2.6 KB
/
build.xml
File metadata and controls
78 lines (69 loc) · 2.6 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
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8"?>
<project name="WikiParser" default="testsuite" basedir=".">
<property name="src.dir" value="src"/>
<property name="build.dir" value="classes"/>
<property name="lib.dir" value="lib"/>
<property name="script.dir" value="scripts"/>
<property name="res.dir" value="resources"/>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}"
destdir="${build.dir}"
includeantruntime="false"
debug="true"
encoding="UTF-8">
<classpath>
<pathelement location="${lib.dir}/luaj-jse-3.0.2q.jar"/>
</classpath>
</javac>
<copy todir="${build.dir}">
<fileset dir="${res.dir}">
<include name="**/*.json"/>
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="testsuite" depends="compile">
<java classname="wiki.TestSuite" fork="true">
<classpath>
<pathelement path="${build.dir}"/>
<pathelement location="${lib.dir}/luaj-jse-3.0.2q.jar"/>
<pathelement path="${script.dir}"/>
</classpath>
</java>
</target>
<target name="wikisplitter" depends="compile">
<fail message="Please provide a filename using -Dfilename=yourfile.xml" unless="filename"/>
<java classname="wiki.WikiSplitter" fork="true">
<classpath>
<pathelement location="${build.dir}"/>
<pathelement location="${lib.dir}/luaj-jse-3.0.2q.jar"/>
<pathelement path="${script.dir}"/>
</classpath>
<arg value="${filename}"/>
</java>
</target>
<target name="wikifind" depends="compile">
<fail message="Please provide word using -Dword=yourword" unless="word"/>
<java classname="demo.WikiFind" fork="true">
<classpath>
<pathelement location="${build.dir}"/>
<pathelement location="${lib.dir}/luaj-jse-3.0.2q.jar"/>
<pathelement path="${script.dir}"/>
</classpath>
<arg value="${word}"/>
</java>
</target>
<target name="wikiparserdemo" depends="compile">
<java classname="demo.WikiParserDemo" fork="true">
<classpath>
<pathelement path="${build.dir}"/>
<pathelement location="${lib.dir}/luaj-jse-3.0.2q.jar"/>
<pathelement path="${script.dir}"/>
</classpath>
</java>
</target>
</project>