forked from wolfgangmm/exist-stanford-ner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
73 lines (68 loc) · 2.63 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="rconsole">
<property file="build.properties"/>
<property name="project.version" value="0.1"/>
<property name="project.name" value="stanford-ner"/>
<property name="build.dir" value="build"/>
<property name="java.src" value="java/src"/>
<property name="java.classes" value="${build.dir}/classes"/>
<property name="java.libs" value="java/lib"/>
<property name="scripts" value="resources/scripts"/>
<path id="classpath">
<fileset dir="${exist.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${exist.dir}/lib/core">
<include name="*.jar"/>
</fileset>
<fileset dir="${exist.dir}/lib/optional">
<include name="*.jar"/>
</fileset>
<fileset dir="${exist.dir}/tools/jetty/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${java.libs}">
<include name="*.jar"/>
</fileset>
</path>
<target name="prepare">
<mkdir dir="${build.dir}"/>
<mkdir dir="${java.classes}"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="${java.src}" destdir="${java.classes}" optimize="true" debug="true" target="1.6" source="1.6">
<classpath>
<path refid="classpath"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar basedir="${java.classes}" jarfile="${build.dir}/exist-standford-ner-${project.version}.jar">
<manifest>
<attribute name="Project-Name" value="${project.name}"/>
<attribute name="Project-Version" value="${project.version}"/>
<attribute name="Project-Build" value="${DSTAMP}"/>
</manifest>
</jar>
</target>
<target name="xar" depends="jar">
<zip destfile="${build.dir}/${project.name}-${project.version}.xar">
<fileset dir=".">
<include name="*.*"/>
<include name="modules/**"/>
<include name="templates/**"/>
<include name="resources/**"/>
<exclude name=".git*"/>
<exclude name="build.*"/>
</fileset>
<zipfileset dir="${build.dir}" includes="*.jar" prefix="content"/>
<zipfileset dir="${java.libs}" includes="*.jar" prefix="content"/>
</zip>
<delete dir="${build.dir}/classes"/>
<delete>
<fileset dir="${build.dir}">
<include name="*.jar"/>
</fileset>
</delete>
</target>
</project>