-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
96 lines (87 loc) · 2.73 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
<project name="Text2Onto" default="compile" basedir=".">
<description>
Buildfile for Text2Onto
</description>
<property name="plugin" location="plugin"/>
<property name="src" location="src"/>
<property name="build-plugin" location="build/bin/plugin"/>
<property name="build" location="build/bin/"/>
<property name="jar" location="build/jar"/>
<property name="doc" location="build/doc"/>
<property name="misc" location="3rdparty"/>
<property name="kaon" location="3rdparty/kaon"/>
<property name="pellet" location="3rdparty/pellet"/>
<property name="gate" location="3rdparty/gate"/>
<property name="google" location="3rdparty/google"/>
<property name="kaon2" location="3rdparty/kaon2"/>
<path id="classpath">
<pathelement location="${build}"/>
<pathelement location="${misc}"/>
<fileset dir="${misc}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${kaon}"/>
<fileset dir="${kaon}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${pellet}"/>
<fileset dir="${pellet}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${gate}"/>
<fileset dir="${gate}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${google}"/>
<fileset dir="${google}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${kaon2}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
</target>
<target name="compile" depends="init" description="compile">
<mkdir dir="${build}"/>
<javac source="1.5" srcdir="${src}" destdir="${build}" encoding="iso-8859-1">
<classpath refid="classpath"/>
</javac>
</target>
<target name="compile-plugin" depends="init" description="compile plugin">
<mkdir dir="${build-plugin}"/>
<javac source="1.5" srcdir="${plugin}" destdir="${build-plugin}">
<classpath refid="classpath"/>
<classpath>
<pathelement location="${build}"/>
</classpath>
</javac>
</target>
<target name="run" depends="compile">
<java classname="org.ontoware.text2onto.gui.Text2Onto" fork="true">
<classpath refid="classpath"/>
</java>
</target>
<target name="jar" depends="compile" description="generate jar files" >
<mkdir dir="${jar}"/>
<jar jarfile="${jar}/text2onto.jar">
<fileset dir="${build}"/>
</jar>
<jar jarfile="${jar}/text2onto-plugin.jar">
<fileset dir="${build-plugin}"/>
</jar>
</target>
<target name="doc">
<mkdir dir="${doc}"/>
<javadoc source="1.5" packagenames="org.ontoware.text2onto.*" sourcepath="${src}" destdir="${doc}">
<classpath refid="classpath"/>
</javadoc>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${build-plugin}"/>
<delete dir="${jar}"/>
<delete dir="${doc}"/>
</target>
</project>