forked from jmhsieh/aho-corasick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
98 lines (67 loc) · 2.17 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<project name="ahocorasick" default="compile">
<property name="src" value="src"/>
<property name="lib" value="lib"/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<property name="javadoc" value="javadoc"/>
<property name="version" value="2.x"/>
<!-- Load other global properties from local home directory -->
<!-- For example, it's possible to use jikes globally by setting the
build.compiler property to "jikes". -->
<property file="${user.home}/.ant-global.properties"/>
<path id="project.classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}"
source="1.6" debug="true">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="javadoc">
<javadoc destdir="${javadoc}"
classpathref="project.classpath"
source="1.6">
<fileset dir="${src}" defaultexcludes="yes">
<include name="**/*.java"/>
<exclude name="**/Test*.java"/>
<exclude name="**/TimeTrial.java"/>
</fileset>
</javadoc>
</target>
<target name="jar" depends="clean,compile">
<jar destfile="${dist}/org.arabidopsis.ahocorasick-${version}.jar"
basedir="${build}"/>
</target>
<!-- console test using junit -->
<target name="junit" depends="compile">
<java fork="true" classname="junit.swingui.TestRunner"
taskname="junit" failonerror="true">
<arg value="org.arabidopsis.ahocorasick.TestAll"/>
<classpath>
<path refid="project.classpath"/>
<path location="${build}"/>
</classpath>
</java>
</target>
<!-- console test on /usr/share/dict/words -->
<target name="TimeTrial" depends="compile">
<java fork="true" classname="org.arabidopsis.ahocorasick.TimeTrial"
failonerror="true" maxmemory="256m">
<classpath>
<path refid="project.classpath"/>
<path location="${build}"/>
</classpath>
</java>
</target>
<target name="clean">
<delete dir="${build}" />
</target>
</project>