-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.xml
234 lines (197 loc) · 9.95 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<?xml version="1.0" encoding="UTF-8"?>
<project name="meico" default="all">
<property file="build.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="700m"/>
<patternset id="ignored.files">
<exclude name="**/*.hprof/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/*.rbc/**"/>
<exclude name="**/*.yarb/**"/>
<exclude name="**/*~/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.git/**"/>
<exclude name="**/.hg/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/CVS/**"/>
<exclude name="**/__pycache__/**"/>
<exclude name="**/_svn/**"/>
<exclude name="**/vssver.scc/**"/>
<exclude name="**/vssver2.scc/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.egg"/>
<include name="*.jar"/>
<include name="*.ear"/>
<include name="*.swc"/>
<include name="*.war"/>
<include name="*.zip"/>
<include name="*.ane"/>
</patternset>
<patternset id="compiler.resources">
<exclude name="**/?*.java"/>
<exclude name="**/?*.form"/>
<exclude name="**/?*.class"/>
<exclude name="**/?*.groovy"/>
<exclude name="**/?*.scala"/>
<exclude name="**/?*.flex"/>
<exclude name="**/?*.kt"/>
<exclude name="**/?*.clj"/>
<exclude name="**/?*.aj"/>
</patternset>
<!-- Global Libraries -->
<!-- Modules -->
<!-- Module meico -->
<dirname property="module.meico.basedir" file="${ant.file}"/>
<property name="compiler.args.meico" value="-encoding UTF-8 -source 8 -target 8 ${compiler.args}"/>
<property name="meico.output.dir" value="${module.meico.basedir}/out/production/meico"/>
<property name="meico.testoutput.dir" value="${module.meico.basedir}/out/test/meico"/>
<path id="meico.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="meico.module.production.classpath">
<pathelement location="${basedir}/externals/java-string-similarity-1.0.0.jar"/>
<pathelement location="${basedir}/externals/jing-20091111.jar"/>
<pathelement location="${basedir}/externals/json-simple-3.0.2.jar"/>
<pathelement location="${basedir}/externals/saxon9he.jar"/>
<pathelement location="${basedir}/externals/xom-1.3.8.jar"/>
<pathelement location="${basedir}/externals/gervill.jar"/>
<pathelement location="${basedir}/externals/net.sourceforge.lame-3.98.4.jar"/>
<pathelement location="${basedir}/externals/jipes-0.9.17.jar"/>
<pathelement location="${basedir}/externals/proxymusic-3.0.1.jar"/>
<pathelement location="${basedir}/externals/slf4j-api-2.0.7.jar"/>
<pathelement location="${basedir}/externals/slf4j-simple-2.0.7.jar"/>
</path>
<path id="meico.runtime.production.module.classpath">
<pathelement location="${meico.output.dir}"/>
<pathelement location="${basedir}/externals/java-string-similarity-1.0.0.jar"/>
<pathelement location="${basedir}/externals/jing-20091111.jar"/>
<pathelement location="${basedir}/externals/json-simple-3.0.2.jar"/>
<pathelement location="${basedir}/externals/saxon9he.jar"/>
<pathelement location="${basedir}/externals/xom-1.3.8.jar"/>
<pathelement location="${basedir}/externals/gervill.jar"/>
<pathelement location="${basedir}/externals/net.sourceforge.lame-3.98.4.jar"/>
<pathelement location="${basedir}/externals/jipes-0.9.17.jar"/>
<pathelement location="${basedir}/externals/proxymusic-3.0.1.jar"/>
<pathelement location="${basedir}/externals/slf4j-api-2.0.7.jar"/>
<pathelement location="${basedir}/externals/slf4j-simple-2.0.7.jar"/>
</path>
<path id="meico.module.classpath">
<pathelement location="${meico.output.dir}"/>
<pathelement location="${basedir}/externals/java-string-similarity-1.0.0.jar"/>
<pathelement location="${basedir}/externals/jing-20091111.jar"/>
<pathelement location="${basedir}/externals/json-simple-3.0.2.jar"/>
<pathelement location="${basedir}/externals/saxon9he.jar"/>
<pathelement location="${basedir}/externals/xom-1.3.8.jar"/>
<pathelement location="${basedir}/externals/gervill.jar"/>
<pathelement location="${basedir}/externals/net.sourceforge.lame-3.98.4.jar"/>
<pathelement location="${basedir}/externals/jipes-0.9.17.jar"/>
<pathelement location="${basedir}/externals/proxymusic-3.0.1.jar"/>
<pathelement location="${basedir}/externals/slf4j-api-2.0.7.jar"/>
<pathelement location="${basedir}/externals/slf4j-simple-2.0.7.jar"/>
</path>
<path id="meico.runtime.module.classpath">
<pathelement location="${meico.testoutput.dir}"/>
<pathelement location="${meico.output.dir}"/>
<pathelement location="${basedir}/externals/java-string-similarity-1.0.0.jar"/>
<pathelement location="${basedir}/externals/jing-20091111.jar"/>
<pathelement location="${basedir}/externals/json-simple-3.0.2.jar"/>
<pathelement location="${basedir}/externals/saxon9he.jar"/>
<pathelement location="${basedir}/externals/xom-1.3.8.jar"/>
<pathelement location="${basedir}/externals/gervill.jar"/>
<pathelement location="${basedir}/externals/net.sourceforge.lame-3.98.4.jar"/>
<pathelement location="${basedir}/externals/jipes-0.9.17.jar"/>
<pathelement location="${basedir}/externals/proxymusic-3.0.1.jar"/>
<pathelement location="${basedir}/externals/slf4j-api-2.0.7.jar"/>
<pathelement location="${basedir}/externals/slf4j-simple-2.0.7.jar"/>
</path>
<patternset id="excluded.from.module.meico">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.meico">
<patternset refid="excluded.from.module.meico"/>
</patternset>
<path id="meico.module.sourcepath">
<dirset dir="${module.meico.basedir}">
<include name="src"/>
<include name="externals"/>
</dirset>
</path>
<target name="compile.module.meico" depends="compile.module.meico.production,compile.module.meico.tests" description="Compile module meico"/>
<target name="compile.module.meico.production" description="Compile module meico; production classes">
<mkdir dir="${meico.output.dir}"/>
<javac destdir="${meico.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.meico}"/>
<bootclasspath refid="meico.module.bootclasspath"/>
<classpath refid="meico.module.production.classpath"/>
<src refid="meico.module.sourcepath"/>
<patternset refid="excluded.from.compilation.meico"/>
</javac>
<copy todir="${meico.output.dir}">
<fileset dir="${module.meico.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
<fileset dir="${module.meico.basedir}/externals">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.meico.tests" depends="compile.module.meico.production" description="compile module meico; test classes" unless="skip.tests"/>
<target name="clean.module.meico" description="cleanup module">
<delete dir="${meico.output.dir}"/>
<delete dir="${meico.testoutput.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.meico" description="cleanup all"/>
<target name="build.modules" depends="init, clean, compile.module.meico" description="build all modules"/>
<target name="init.artifacts">
<property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
<property name="artifact.output.meico.jar" value="${basedir}/out/artifacts/meico"/>
<mkdir dir="${artifacts.temp.dir}"/>
<property name="temp.jar.path.meico.jar" value="${artifacts.temp.dir}/meico.jar"/>
</target>
<target name="artifact.meico.jar" depends="init.artifacts, compile.module.meico" description="Build 'meico.jar' artifact">
<property name="artifact.temp.output.meico.jar" value="${artifacts.temp.dir}/meico_jar"/>
<mkdir dir="${artifact.temp.output.meico.jar}"/>
<jar destfile="${temp.jar.path.meico.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
<zipfileset dir="${meico.output.dir}"/>
<zipfileset src="${basedir}/externals/jing-20091111.jar"/>
<zipfileset src="${basedir}/externals/json-simple-3.0.2.jar"/>
<zipfileset src="${basedir}/externals/java-string-similarity-1.0.0.jar"/>
<zipfileset src="${basedir}/externals/xom-1.3.8.jar"/>
<zipfileset src="${basedir}/externals/saxon9he.jar"/>
<zipfileset src="${basedir}/externals/gervill.jar"/>
<zipfileset src="${basedir}/externals/jing-20091111.jar"/>
<zipfileset src="${basedir}/externals/net.sourceforge.lame-3.98.4.jar"/>
<zipfileset src="${basedir}/externals/jipes-0.9.17.jar"/>
<zipfileset src="${basedir}/externals/proxymusic-3.0.1.jar"/>
<zipfileset src="${basedir}/externals/slf4j-api-2.0.7.jar"/>
<zipfileset src="${basedir}/externals/slf4j-simple-2.0.7.jar"/>
<manifest>
<attribute name="Main-Class" value="meico.app.Main"/>
</manifest>
</jar>
<copy file="${temp.jar.path.meico.jar}" tofile="${artifact.temp.output.meico.jar}/meico.jar"/>
</target>
<target name="build.all.artifacts" depends="artifact.meico.jar" description="Build all artifacts">
<mkdir dir="${artifact.output.meico.jar}"/>
<copy todir="${artifact.output.meico.jar}">
<fileset dir="${artifact.temp.output.meico.jar}"/>
</copy>
<!-- Delete temporary files -->
<delete dir="${artifacts.temp.dir}"/>
</target>
<target name="all" depends="build.modules, build.all.artifacts" description="build all"/>
</project>