-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
87 lines (74 loc) · 3.04 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
<project name="LVCoref" default="clean-dist" basedir=".">
<description>
Build file for LVCoref project
</description>
<!-- set global properties for this build -->
<property name="src" location="${basedir}/src"/>
<property name="build" location="${basedir}/build"/>
<property name="dist" location="${basedir}/dist"/>
<property name="lib" location="${basedir}/lib"/>
<property name="lvtagger.dir" location="${basedir}/../LVTagger"/>
<property name="lvtagger.dist" location="${lvtagger.dir}/dist"/>
<path id="project.class.path">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="classpath" description="Sets the classpath">
<path id="compile.classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lvtagger.dist}">
<include name="*.jar"/>
</fileset>
</path>
</target>
<target name="compile" depends="init,classpath"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac source="1.7" encoding="UTF-8" includeantruntime="false" debug="true" srcdir="${src}" destdir="${build}">
<classpath refid="compile.classpath"/>
<!--<compilerarg value="-Xlint"/>-->
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<mkdir dir="${dist}"/>
<copy todir="${dist}">
<fileset dir="${lvtagger.dist}">
<include name="**"/>
</fileset>
</copy>
<copy todir="${basedir}/models"> <fileset dir="${lvtagger.dir}/models" /> </copy>
<copy todir="${basedir}/Gazetteer"> <fileset dir="${lvtagger.dir}/Gazetteer" /> </copy>
<copy todir="${basedir}/LETAdicts"> <fileset dir="${lvtagger.dir}/LETAdicts" /> </copy>
<copy todir="${basedir}/LETAdicts"> <fileset dir="${lvtagger.dir}/LETAdicts" /> </copy>
<copy file="${lvtagger.dir}/lv-ner-tagger.prop" todir="${basedir}"/>
<!-- Put everything in ${build} into the lvcoref[-{DSTAMP}${TSTAMP}].jar file -->
<jar jarfile="${dist}/lvcoref.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="lv.coref.io.CorefPipe"/>
<attribute name="Created-By" value="AZ"/>
</manifest>
</jar>
<!--
<zip destfile="LVCoref.zip" basedir="." includes="dist/**,lists/**,lib/**,*.bat,*.sh,*.prop,README.md,LICENSE.txt,sample*.*">
<zipfileset dir="other" prefix="" excludes="maltparser/**,maltparser-lvsynt/**,maltparser-lvsem/**,LVTagger/**" />
</zip> -->
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="clean-dist" depends="clean,dist"
description="clean and generate the distribution" >
</target>
</project>