-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.xml
executable file
·111 lines (82 loc) · 2.91 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
109
110
111
<?xml version="1.0"?>
<project name="Information Extraction System" default="build" basedir=".">
<description>Information Extraction</description>
<!-- Prevent Ant from warning about included runtime not being set -->
<property name="build.sysclasspath" value="ignore" />
<property name="src.dir" value="src"/>
<property name="classes.dir" value="classes"/>
<property name="javadoc.dir" value="doc/javadoc"/>
<property name="jar.location" value="InformationExtractionSystem.jar" />
<!-- libraries specific to this plug-in -->
<fileset id="libs" dir="lib">
<include name="**/**.jar"/>
<include name="**/**.zip"/>
</fileset>
<path id="compile.classpath">
<fileset refid="libs"/>
</path>
<target name="prepare">
<mkdir dir="${classes.dir}"/>
</target>
<target name="compile" description="Compile Java sources" depends="prepare">
<javac srcdir="src"
destdir="${classes.dir}"
debug="true"
source="1.6"
target="1.6"
debuglevel="lines,vars,source"
deprecation="on"
optimize="off"
encoding="UTF-8"
classpathref="compile.classpath"/>
</target>
<!-- Create application JAR file -->
<target name="jar" depends="compile">
<jar destfile="${jar.location}"
update="false"
index="true"
basedir="${classes.dir}/"
/>
</target>
<!-- Targets used by the main GATE build file:
build: build the plugin - just calls "jar" target
test : run the unit tests - there aren't any
distro.prepare: remove intermediate files that shouldn't be in the
distribution
-->
<target name="build" depends="jar" />
<target name="test" />
<target name="distro.prepare" depends="clean.classes" />
<target name="clean.classes" >
<delete dir="${classes.dir}" />
</target>
<target name="clean.jar" >
<delete file="${jar.location}" />
</target>
<!-- Clean up - remove .class and .jar files -->
<target name="clean" depends="clean.classes, clean.jar" />
<!-- generate javadoc -->
<target name="doc"
depends="javadoc"/>
<target name="javadoc"
depends="compile"
description="Create Javadoc API documentation">
<javadoc access="protected"
destdir="${javadoc.dir}"
classpathref="compile.classpath"
Extdirs="${extDir}"
Encoding="UTF-8"
Use="yes"
Windowtitle="Information Extraction SystemJavaDoc"
docencoding="UTF-8"
charset="UTF-8"
source="1.6"
useexternalfile="yes"
breakiterator="true"
linksource="yes">
<fileset dir="${src.dir}"/>
<link href="http://docs.oracle.com/javase/6/docs/api/" />
<link href="http://gate.ac.uk/gate/doc/javadoc/" />
</javadoc>
</target>
</project>