-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
160 lines (146 loc) · 5.89 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<project name="Alcomo2012" default="dist" basedir=".">
<description>Applying logical constraints to ontology matching (2012 version)</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="lib" location="old/lib"/>
<property name="ex" location="testdata"/>
<path id="libraries.path">
<!-- HERMIT -->
<pathelement location="/old/lib/hermit-v136-libs/axiom-1.2.8.jar"/>
<pathelement location="/old/lib/hermit-v136-libs/dk.brics.automaton-1.11-2.jar"/>
<pathelement location="/old/lib/hermit-v136-libs/jautomata-core-2.0-alpha-1.jar"/>
<pathelement location="/old/lib/hermit-v136-libs/junit-4.4.jar"/>
<pathelement location="/old/lib/hermitv136/HermiT.jar"/>
<!-- PELLET -->
<pathelement location="/old/lib/pelletv230/aterm-java-1.6.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-cli.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-core.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-datatypes.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-dig.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-el.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-explanation.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-jena.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-modularity.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-owlapiv3.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-pellint.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-query.jar"/>
<pathelement location="/old/lib/pelletv230/pellet-rules.jar"/>
<pathelement location="/old/lib/pelletv230/servlet.jar"/>
<pathelement location="/old/lib/pelletv230-libs/jgrapht-jdk1.5.jar"/>
<!-- OWL_API -->
<pathelement location="/old/lib/owlapiv322/owlapi-3.2.2.jar"/>
<!-- LOG4J -->
<pathelement location="/old/lib/log4j1216/log4j-1.2.16.jar"/>
</path>
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="libraries.path"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source " >
<javac includeantruntime="false" srcdir="${src}" destdir="${build}">
<exclude name="de/unima/alcomox/thesis/**"/>
<exclude name="de/unima/alcomox/experiments/**"/>
<exclude name="de/unima/alcomox/examples/**"/>
<!-- <exclude name="de/unima/alcomox/mapping/**"/> -->
<classpath>
<path refid="libraries.path"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<!-- Create the distribution directory and its subfolders -->
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/lib"/>
<mkdir dir="${dist}/doc"/>
<mkdir dir="${dist}/testdata"/>
<mkdir dir="${dist}/testdata/conference"/>
<mkdir dir="${dist}/testdata/anatomy"/>
<!-- put everything together -->
<jar jarfile="${dist}/alcomo.jar" basedir="${build}">
<manifest>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
</jar>
<!-- copy required libraries -->
<copy todir="${dist}/lib">
<fileset dir="/old/lib/pelletv230">
<exclude name=".svn"/>
</fileset>
</copy>
<copy file="/old/lib/pelletv230-libs/jgrapht-jdk1.5.jar" tofile="${dist}/lib/jgrapht-jdk1.5.jar"/>
<copy file="/old/lib/hermitv136/HermiT.jar" tofile="${dist}/lib/HermiT.jar"/>
<copy todir="${dist}/lib">
<fileset dir="/old/lib/hermit-v136-libs">
<exclude name=".svn"/>
</fileset>
</copy>
<copy file="/old/lib/log4j1216/log4j-1.2.16.jar" tofile="${dist}/lib/log4j-1.2.16.jar"/>
<copy file="/old/lib/owlapiv322/owlapi-3.2.2.jar" tofile="${dist}/lib/owlapi-3.2.2.jar"/>
<!-- copy required examples -->
<copy todir="${dist}/testdata/conference">
<fileset dir="${ex}/conference">
<exclude name=".svn"/>
</fileset>
</copy>
<copy todir="${dist}/testdata/anatomy">
<fileset dir="${ex}/anatomy">
<exclude name=".svn"/>
</fileset>
</copy>
</target>
<target name="javadoc" description="generate the javadoc" >
<javadoc destdir="${dist}/doc" author="true" version="true" use="true" windowtitle="ALCOMO 2012 Documentation">
<fileset dir="src">
<exclude name="de/unima/alcomox/thesis/**"/>
<exclude name="de/unima/alcomox/examples/**"/>
<exclude name="de/unima/alcomox/experiments/**"/>
</fileset>
<classpath>
<path refid="libraries.path"/>
</classpath>
</javadoc>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="cep" description="copies the all required things to have an eclipse project">
<copy todir="${dist}/eclipseproject/src">
<fileset dir="src/" casesensitive="yes">
<include name="**/*.java"/>
<exclude name="**/examples/**"/>
<exclude name="**/test/**"/>
<exclude name=".svn"/>
</fileset>
</copy>
<copy todir="${dist}/eclipseproject/lib">
<fileset dir="old/lib/" casesensitive="yes">
<include name="**/*.jar"/>
<exclude name=".svn"/>
</fileset>
</copy>
<copy todir="${dist}/eclipseproject/testdata/conference">
<fileset dir="testdata/conference" casesensitive="yes"/>
</copy>
<copy todir="${dist}/eclipseproject/testdata/anatomy">
<fileset dir="testdata/anatomy" casesensitive="yes"/>
</copy>
<copy file=".classpath" tofile="${dist}/eclipseproject/.classpath"/>
<copy file=".project" tofile="${dist}/eclipseproject/.project"/>
<copy file="build.xml" tofile="${dist}/eclipseproject/build.xml"/>
<copy file="log4j.properties" tofile="${dist}/eclipseproject/log4j.properties"/>
</target>
</project>