-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
46 lines (39 loc) · 1.6 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project basedir="." default="dist" name="malt-libweka">
<path id="malt-libweka.classpath">
<pathelement location="bin"/>
<pathelement location="lib/maltparser-1.7.1.jar"/>
<pathelement location="lib/weka-3.6.6.jar"/>
<pathelement location="lib/log4j.jar"/>
<pathelement location="lib/libsvm.jar"/>
<pathelement location="lib/commons-net-3.1.jar"/>
</path>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source " >
<javac debug="on" debuglevel="lines,vars,source" destdir="${build}">
<src path="src"/>
<classpath refid="malt-libweka.classpath"/>
</javac>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<mkdir dir="${dist}/lib"/>
<jar jarfile="${dist}/lib/maltlibweka.jar" basedir="${build}"/>
</target>
<target name="updatemalt"
description="replace to options.xml in the malt jar.">
<touch file="config/appdata/options.xml"/>
<jar jarfile="lib/maltparser-1.7.1.jar"
update="true"
basedir="config"/>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>