-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.xml
108 lines (96 loc) · 4.53 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
99
100
101
102
103
104
105
106
107
108
<project name="metamaplite" default="main" basedir=".">
<!-- ==================== Initialization properties ===================== -->
<!-- Give user a chance to override without editing this file
(and without typing -D each time it compiles it) -->
<property file=".ant.properties" />
<property file="${user.home}/.ant.properties" />
<!--
===================================================================
Set the properties related to the source tree
===================================================================
-->
<property name="java.top" value=".."/>
<property name="project.top" value="."/>
<property name="project.src" value="${project.top}/src/main/java"/>
<property name="project.apidoc" value="${project.top}/doc/apiDoc"/>
<property name="project.classes" value="${project.top}/classes" />
<property name="project.lib" value="${project.top}/lib" />
<property name="bioc" value="${project.lib}/bioc-1.0.1.jar"/>
<property name="lucene-core" value="${project.lib}/lucene-core-4.10.0.jar"/>
<property name="lucene-analyzers-common" value="${project.lib}/lucene-analyzers-common-4.10.0.jar"/>
<property name="lucene-queryparser" value="${project.lib}/lucene-queryparser-4.10.0.jar"/>
<property name="lucene-queries" value="${project.lib}/lucene-queries-4.10.0.jar"/>
<property name="log4j-api" value="${project.lib}/log4j-api-2.1.jar"/>
<property name="log4j-core" value="${project.lib}/log4j-core-2.1.jar"/>
<property name="context" value="${project.lib}/context-2012.jar"/>
<property name="opennlp-maxent" value="${project.lib}/opennlp-maxent-3.0.3.jar"/>
<property name="opennlp-tools" value="${project.lib}/opennlp-tools-1.5.3.jar"/>
<property name="opencsv" value="${project.lib}/opencsv-2.3.jar"/>
<property name="nlsnlp" value="${project.lib}/nlp-2.4.C.jar"/>
<property name="lvg" value="${project.lib}/lvgdist-2020.0.jar"/>
<property name="json" value="${project.lib}/json-20180813.jar"/>
<!-- ======================== compile ========================= -->
<target name="compile">
<mkdir dir="${project.classes}" />
<javac srcdir="${project.src}"
destdir="${project.classes}">
<classpath>
<pathelement location="${bioc}"/>
<pathelement location="${lucene-core}"/>
<pathelement location="${lucene-analyzers-common}"/>
<pathelement location="${lucene-queryparser}"/>
<pathelement location="${lucene-queries}"/>
<pathelement location="${log4j-api}"/>
<pathelement location="${log4j-core}"/>
<pathelement location="${context}"/>
<pathelement location="${opennlp-maxent}"/>
<pathelement location="${opennlp-tools}"/>
<pathelement location="${opencsv}"/>
<pathelement location="${nlsnlp}"/>
<pathelement location="${lvg}"/>
<pathelement location="${json}"/>
</classpath>
</javac>
</target>
<!-- =================== javadoc generation ====================== -->
<target name="javadoc">
<!-- Add project internal javadoc -->
<mkdir dir="${project.apidoc}" />
<javadoc packagenames="tools.*"
sourcepath="${project.src}"
destdir="${project.apidoc}"
author="true"
version="true"
use="true"
package="true"
windowtitle="Tools api"
doctitle="Tools Internal"
bottom="Copyright © 2015 National Library of Medicine."
splitindex="true">
</javadoc>
</target>
<!-- ==================== Administrative targets ======================= -->
<target name="jar" depends="compile">
<mkdir dir="${project.lib}" />
<jar jarfile="${project.lib}/metamaplite-3.6.2rc5-SNAPSHOT.jar"
basedir="${project.classes}"/>
</target>
<!-- delete classes directory -->
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${project.classes}"/>
</delete>
</target>
<target name="all" depends="clean,compile,javadoc,jar"/>
<target name="main" depends="compile"/>
<!-- help target -->
<target name="help">
<echo>
targets:
clean clean classes and archives from working directory
compile build classes
javadoc build javadoc
jar build jar of classes
</echo>
</target>
</project>