Mercurial > hg > mercurial
annotate mercurial.xml @ 732:31a1aca3305c
Update copyright
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Tue, 14 Jan 2014 12:45:10 +0100 |
parents | 0633946c76f2 |
children |
rev | line source |
---|---|
486 | 1 <?xml version="1.0" encoding="UTF-8"?> |
732
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
2 <!-- |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
3 ~ Copyright 2000-2014 JetBrains s.r.o. |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
4 ~ |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
5 ~ Licensed under the Apache License, Version 2.0 (the "License"); |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
6 ~ you may not use this file except in compliance with the License. |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
7 ~ You may obtain a copy of the License at |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
8 ~ |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
9 ~ http://www.apache.org/licenses/LICENSE-2.0 |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
10 ~ |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
11 ~ Unless required by applicable law or agreed to in writing, software |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
12 ~ distributed under the License is distributed on an "AS IS" BASIS, |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
14 ~ See the License for the specific language governing permissions and |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
15 ~ limitations under the License. |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
16 --> |
31a1aca3305c
Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
486
diff
changeset
|
17 |
486 | 18 <project name="mercurial" default="all"> |
19 | |
20 | |
21 <property file="mercurial.properties"/> | |
22 <!-- Uncomment the following property if no tests compilation is needed --> | |
23 <!-- | |
24 <property name="skip.tests" value="true"/> | |
25 --> | |
26 | |
27 <!-- Compiler options --> | |
28 | |
29 <property name="compiler.debug" value="on"/> | |
30 <property name="compiler.generate.no.warnings" value="off"/> | |
31 <property name="compiler.args" value=""/> | |
32 <property name="compiler.max.memory" value="128m"/> | |
33 <patternset id="ignored.files"> | |
34 <exclude name="**/CVS/**"/> | |
35 <exclude name="**/SCCS/**"/> | |
36 <exclude name="**/RCS/**"/> | |
37 <exclude name="**/rcs/**"/> | |
38 <exclude name="**/.DS_Store/**"/> | |
39 <exclude name="**/.svn/**"/> | |
40 <exclude name="**/.pyc/**"/> | |
41 <exclude name="**/.pyo/**"/> | |
42 <exclude name="**/*.pyc/**"/> | |
43 <exclude name="**/*.pyo/**"/> | |
44 <exclude name="**/.git/**"/> | |
45 <exclude name="**/*.hprof/**"/> | |
46 <exclude name="**/_svn/**"/> | |
47 <exclude name="**/.hg/**"/> | |
48 <exclude name="**/*.lib/**"/> | |
49 <exclude name="**/*~/**"/> | |
50 <exclude name="**/__pycache__/**"/> | |
51 <exclude name="**/.bundle/**"/> | |
52 <exclude name="**/*.rbc/**"/> | |
53 <exclude name="**/*.orig/**"/> | |
54 </patternset> | |
55 <patternset id="library.patterns"> | |
56 <include name="*.zip"/> | |
57 <include name="*.apk"/> | |
58 <include name="*.war"/> | |
59 <include name="*.egg"/> | |
60 <include name="*.ear"/> | |
61 <include name="*.ane"/> | |
62 <include name="*.swc"/> | |
63 <include name="*.jar"/> | |
64 </patternset> | |
65 <patternset id="compiler.resources"> | |
66 <include name="**/?*.properties"/> | |
67 <include name="**/?*.xml"/> | |
68 <include name="**/?*.gif"/> | |
69 <include name="**/?*.png"/> | |
70 <include name="**/?*.jpeg"/> | |
71 <include name="**/?*.jpg"/> | |
72 <include name="**/?*.html"/> | |
73 <include name="**/?*.dtd"/> | |
74 <include name="**/?*.tld"/> | |
75 <include name="**/?*.jsp"/> | |
76 <include name="**/?*.tag"/> | |
77 <include name="**/?*.template"/> | |
78 </patternset> | |
79 | |
80 | |
81 <!-- Project Libraries --> | |
82 | |
83 <path id="library.idea-openapi.classpath"> | |
84 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/annotations.jar"/> | |
85 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/openapi.jar"/> | |
86 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/resources_en.jar"/> | |
87 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/util.jar"/> | |
88 </path> | |
89 | |
90 <path id="library.jdom.classpath"> | |
91 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/jdom.jar"/> | |
92 </path> | |
93 | |
94 <path id="library.jmock.classpath"> | |
95 <pathelement location="${basedir}/mercurial-tests/lib/hamcrest-core-1.1.jar"/> | |
96 <pathelement location="${basedir}/mercurial-tests/lib/hamcrest-integration-1.1.jar"/> | |
97 <pathelement location="${basedir}/mercurial-tests/lib/hamcrest-library-1.1.jar"/> | |
98 <pathelement location="${basedir}/mercurial-tests/lib/jmock-2.5.1.jar"/> | |
99 <pathelement location="${basedir}/mercurial-tests/lib/jmock-SNAPSHOT.jar"/> | |
100 </path> | |
101 | |
102 <path id="library.junit.classpath"> | |
103 <pathelement location="${basedir}/mercurial-tests/lib/junit-3.8.1.jar"/> | |
104 </path> | |
105 | |
106 <path id="library.log4j.classpath"> | |
107 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/log4j-1.2.12.jar"/> | |
108 </path> | |
109 | |
110 <path id="library.teamcity-impl.classpath"> | |
111 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/patches-impl.jar"/> | |
112 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/trove4j.jar"/> | |
113 </path> | |
114 | |
115 <path id="library.teamcity-testsapi.classpath"> | |
116 <pathelement location="${path.variable.teamcitydistribution}/devPackage/tests/patches-test.jar"/> | |
117 <pathelement location="${path.variable.teamcitydistribution}/devPackage/tests/tests-support.jar"/> | |
118 </path> | |
119 | |
120 <path id="library.teamcity_vcs_api.classpath"> | |
121 <pathelement location="${path.variable.teamcitydistribution}/devPackage/server-common-api.jar"/> | |
122 <pathelement location="${path.variable.teamcitydistribution}/devPackage/server-vcs-api.jar"/> | |
123 </path> | |
124 | |
125 <path id="library.teamcityapi-agent.classpath"> | |
126 <pathelement location="${path.variable.teamcitydistribution}/buildAgent/lib/agent.jar"/> | |
127 <pathelement location="${path.variable.teamcitydistribution}/devPackage/agent-api.jar"/> | |
128 </path> | |
129 | |
130 <path id="library.teamcityapi-common.classpath"> | |
131 <pathelement location="${path.variable.teamcitydistribution}/devPackage/common-api.jar"/> | |
132 </path> | |
133 | |
134 <path id="library.teamcityapi-server.classpath"> | |
135 <pathelement location="${path.variable.teamcitydistribution}/devPackage/server-api.jar"/> | |
136 <pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/server.jar"/> | |
137 </path> | |
138 | |
139 <path id="library.testng.classpath"> | |
140 <pathelement location="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/> | |
141 </path> | |
142 | |
143 | |
144 <!-- Application Server Libraries --> | |
145 | |
146 <!-- Modules --> | |
147 | |
148 | |
149 <!-- Module main --> | |
150 | |
151 <dirname property="module.main.basedir" file="${ant.file}"/> | |
152 | |
153 | |
154 | |
155 <property name="compiler.args.main" value="${compiler.args}"/> | |
156 | |
157 <property name="main.output.dir" value="undefined"/> | |
158 <property name="main.testoutput.dir" value="undefined"/> | |
159 | |
160 <path id="main.module.bootclasspath"> | |
161 <!-- Paths to be included in compilation bootclasspath --> | |
162 </path> | |
163 | |
164 <path id="main.module.production.classpath"/> | |
165 | |
166 <path id="main.runtime.production.module.classpath"/> | |
167 | |
168 <path id="main.module.classpath"/> | |
169 | |
170 <path id="main.runtime.module.classpath"/> | |
171 | |
172 | |
173 <patternset id="excluded.from.module.main"> | |
174 <patternset refid="ignored.files"/> | |
175 </patternset> | |
176 | |
177 <patternset id="excluded.from.compilation.main"> | |
178 <patternset refid="excluded.from.module.main"/> | |
179 </patternset> | |
180 | |
181 | |
182 <target name="compile.module.main" depends="compile.module.main.production,compile.module.main.tests" description="Compile module main"/> | |
183 | |
184 <target name="compile.module.main.production" description="Compile module main; production classes"/> | |
185 | |
186 <target name="compile.module.main.tests" depends="compile.module.main.production" description="compile module main; test classes" unless="skip.tests"/> | |
187 | |
188 <target name="clean.module.main" description="cleanup module"> | |
189 <delete dir="${main.output.dir}"/> | |
190 <delete dir="${main.testoutput.dir}"/> | |
191 </target> | |
192 | |
193 | |
194 <!-- Module mercurial-common --> | |
195 | |
196 <dirname property="module.mercurial-common.basedir" file="${ant.file}"/> | |
197 | |
198 | |
199 | |
200 <property name="compiler.args.mercurial-common" value="${compiler.args}"/> | |
201 | |
202 <property name="mercurial-common.output.dir" value="${module.mercurial-common.basedir}/mercurial-common/classes"/> | |
203 <property name="mercurial-common.testoutput.dir" value="${module.mercurial-common.basedir}/mercurial-common/classes"/> | |
204 | |
205 <path id="mercurial-common.module.bootclasspath"> | |
206 <!-- Paths to be included in compilation bootclasspath --> | |
207 </path> | |
208 | |
209 <path id="mercurial-common.module.production.classpath"> | |
210 <path refid="library.teamcityapi-common.classpath"/> | |
211 <path refid="library.idea-openapi.classpath"/> | |
212 <path refid="library.jdom.classpath"/> | |
213 </path> | |
214 | |
215 <path id="mercurial-common.runtime.production.module.classpath"> | |
216 <pathelement location="${mercurial-common.output.dir}"/> | |
217 <path refid="library.teamcityapi-common.classpath"/> | |
218 <path refid="library.idea-openapi.classpath"/> | |
219 <path refid="library.jdom.classpath"/> | |
220 </path> | |
221 | |
222 <path id="mercurial-common.module.classpath"> | |
223 <pathelement location="${mercurial-common.output.dir}"/> | |
224 <path refid="library.teamcityapi-common.classpath"/> | |
225 <path refid="library.idea-openapi.classpath"/> | |
226 <path refid="library.jdom.classpath"/> | |
227 </path> | |
228 | |
229 <path id="mercurial-common.runtime.module.classpath"> | |
230 <pathelement location="${mercurial-common.output.dir}"/> | |
231 <path refid="library.teamcityapi-common.classpath"/> | |
232 <path refid="library.idea-openapi.classpath"/> | |
233 <path refid="library.jdom.classpath"/> | |
234 </path> | |
235 | |
236 | |
237 <patternset id="excluded.from.module.mercurial-common"> | |
238 <patternset refid="ignored.files"/> | |
239 </patternset> | |
240 | |
241 <patternset id="excluded.from.compilation.mercurial-common"> | |
242 <patternset refid="excluded.from.module.mercurial-common"/> | |
243 </patternset> | |
244 | |
245 <path id="mercurial-common.module.sourcepath"> | |
246 <dirset dir="${module.mercurial-common.basedir}/mercurial-common"> | |
247 <include name="src"/> | |
248 </dirset> | |
249 </path> | |
250 | |
251 | |
252 <target name="compile.module.mercurial-common" depends="compile.module.mercurial-common.production,compile.module.mercurial-common.tests" description="Compile module mercurial-common"/> | |
253 | |
254 <target name="compile.module.mercurial-common.production" description="Compile module mercurial-common; production classes"> | |
255 <mkdir dir="${mercurial-common.output.dir}"/> | |
256 <javac destdir="${mercurial-common.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true"> | |
257 <compilerarg line="${compiler.args.mercurial-common}"/> | |
258 <bootclasspath refid="mercurial-common.module.bootclasspath"/> | |
259 <classpath refid="mercurial-common.module.production.classpath"/> | |
260 <src refid="mercurial-common.module.sourcepath"/> | |
261 <patternset refid="excluded.from.compilation.mercurial-common"/> | |
262 </javac> | |
263 | |
264 <copy todir="${mercurial-common.output.dir}"> | |
265 <fileset dir="${module.mercurial-common.basedir}/mercurial-common/src"> | |
266 <patternset refid="compiler.resources"/> | |
267 <type type="file"/> | |
268 </fileset> | |
269 </copy> | |
270 </target> | |
271 | |
272 <target name="compile.module.mercurial-common.tests" depends="compile.module.mercurial-common.production" description="compile module mercurial-common; test classes" unless="skip.tests"/> | |
273 | |
274 <target name="clean.module.mercurial-common" description="cleanup module"> | |
275 <delete dir="${mercurial-common.output.dir}"/> | |
276 <delete dir="${mercurial-common.testoutput.dir}"/> | |
277 </target> | |
278 | |
279 | |
280 <!-- Module mercurial-agent --> | |
281 | |
282 <dirname property="module.mercurial-agent.basedir" file="${ant.file}"/> | |
283 | |
284 | |
285 | |
286 <property name="compiler.args.mercurial-agent" value="${compiler.args}"/> | |
287 | |
288 <property name="mercurial-agent.output.dir" value="${module.mercurial-agent.basedir}/mercurial-agent/classes"/> | |
289 <property name="mercurial-agent.testoutput.dir" value="${module.mercurial-agent.basedir}/mercurial-agent/classes"/> | |
290 | |
291 <path id="mercurial-agent.module.bootclasspath"> | |
292 <!-- Paths to be included in compilation bootclasspath --> | |
293 </path> | |
294 | |
295 <path id="mercurial-agent.module.production.classpath"> | |
296 <path refid="library.teamcityapi-agent.classpath"/> | |
297 <pathelement location="${mercurial-common.output.dir}"/> | |
298 <path refid="library.teamcityapi-common.classpath"/> | |
299 <path refid="library.idea-openapi.classpath"/> | |
300 </path> | |
301 | |
302 <path id="mercurial-agent.runtime.production.module.classpath"> | |
303 <pathelement location="${mercurial-agent.output.dir}"/> | |
304 <path refid="library.teamcityapi-agent.classpath"/> | |
305 <pathelement location="${mercurial-common.output.dir}"/> | |
306 <path refid="library.teamcityapi-common.classpath"/> | |
307 <path refid="library.idea-openapi.classpath"/> | |
308 <path refid="library.jdom.classpath"/> | |
309 </path> | |
310 | |
311 <path id="mercurial-agent.module.classpath"> | |
312 <pathelement location="${mercurial-agent.output.dir}"/> | |
313 <path refid="library.teamcityapi-agent.classpath"/> | |
314 <pathelement location="${mercurial-common.output.dir}"/> | |
315 <path refid="library.teamcityapi-common.classpath"/> | |
316 <path refid="library.idea-openapi.classpath"/> | |
317 </path> | |
318 | |
319 <path id="mercurial-agent.runtime.module.classpath"> | |
320 <pathelement location="${mercurial-agent.output.dir}"/> | |
321 <path refid="library.teamcityapi-agent.classpath"/> | |
322 <pathelement location="${mercurial-common.output.dir}"/> | |
323 <path refid="library.teamcityapi-common.classpath"/> | |
324 <path refid="library.idea-openapi.classpath"/> | |
325 <path refid="library.jdom.classpath"/> | |
326 </path> | |
327 | |
328 | |
329 <patternset id="excluded.from.module.mercurial-agent"> | |
330 <patternset refid="ignored.files"/> | |
331 </patternset> | |
332 | |
333 <patternset id="excluded.from.compilation.mercurial-agent"> | |
334 <patternset refid="excluded.from.module.mercurial-agent"/> | |
335 </patternset> | |
336 | |
337 <path id="mercurial-agent.module.sourcepath"> | |
338 <dirset dir="${module.mercurial-agent.basedir}/mercurial-agent"> | |
339 <include name="src"/> | |
340 </dirset> | |
341 </path> | |
342 | |
343 | |
344 <target name="compile.module.mercurial-agent" depends="compile.module.mercurial-agent.production,compile.module.mercurial-agent.tests" description="Compile module mercurial-agent"/> | |
345 | |
346 <target name="compile.module.mercurial-agent.production" depends="compile.module.mercurial-common" description="Compile module mercurial-agent; production classes"> | |
347 <mkdir dir="${mercurial-agent.output.dir}"/> | |
348 <javac destdir="${mercurial-agent.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true"> | |
349 <compilerarg line="${compiler.args.mercurial-agent}"/> | |
350 <bootclasspath refid="mercurial-agent.module.bootclasspath"/> | |
351 <classpath refid="mercurial-agent.module.production.classpath"/> | |
352 <src refid="mercurial-agent.module.sourcepath"/> | |
353 <patternset refid="excluded.from.compilation.mercurial-agent"/> | |
354 </javac> | |
355 | |
356 <copy todir="${mercurial-agent.output.dir}"> | |
357 <fileset dir="${module.mercurial-agent.basedir}/mercurial-agent/src"> | |
358 <patternset refid="compiler.resources"/> | |
359 <type type="file"/> | |
360 </fileset> | |
361 </copy> | |
362 </target> | |
363 | |
364 <target name="compile.module.mercurial-agent.tests" depends="compile.module.mercurial-agent.production" description="compile module mercurial-agent; test classes" unless="skip.tests"/> | |
365 | |
366 <target name="clean.module.mercurial-agent" description="cleanup module"> | |
367 <delete dir="${mercurial-agent.output.dir}"/> | |
368 <delete dir="${mercurial-agent.testoutput.dir}"/> | |
369 </target> | |
370 | |
371 | |
372 <!-- Module mercurial-server --> | |
373 | |
374 <dirname property="module.mercurial-server.basedir" file="${ant.file}"/> | |
375 | |
376 | |
377 | |
378 <property name="compiler.args.mercurial-server" value="${compiler.args}"/> | |
379 | |
380 <property name="mercurial-server.output.dir" value="${module.mercurial-server.basedir}/mercurial-server/classes"/> | |
381 <property name="mercurial-server.testoutput.dir" value="${module.mercurial-server.basedir}/mercurial-server/classes"/> | |
382 | |
383 <path id="mercurial-server.module.bootclasspath"> | |
384 <!-- Paths to be included in compilation bootclasspath --> | |
385 </path> | |
386 | |
387 <path id="mercurial-server.module.production.classpath"> | |
388 <path refid="library.teamcityapi-server.classpath"/> | |
389 <path refid="library.idea-openapi.classpath"/> | |
390 <path refid="library.log4j.classpath"/> | |
391 <pathelement location="${mercurial-common.output.dir}"/> | |
392 <path refid="library.teamcityapi-common.classpath"/> | |
393 <path refid="library.teamcity_vcs_api.classpath"/> | |
394 </path> | |
395 | |
396 <path id="mercurial-server.runtime.production.module.classpath"> | |
397 <pathelement location="${mercurial-server.output.dir}"/> | |
398 <path refid="library.teamcityapi-server.classpath"/> | |
399 <path refid="library.idea-openapi.classpath"/> | |
400 <path refid="library.log4j.classpath"/> | |
401 <pathelement location="${mercurial-common.output.dir}"/> | |
402 <path refid="library.teamcityapi-common.classpath"/> | |
403 <path refid="library.jdom.classpath"/> | |
404 <path refid="library.teamcity_vcs_api.classpath"/> | |
405 </path> | |
406 | |
407 <path id="mercurial-server.module.classpath"> | |
408 <pathelement location="${mercurial-server.output.dir}"/> | |
409 <path refid="library.teamcityapi-server.classpath"/> | |
410 <path refid="library.idea-openapi.classpath"/> | |
411 <path refid="library.log4j.classpath"/> | |
412 <pathelement location="${mercurial-common.output.dir}"/> | |
413 <path refid="library.teamcityapi-common.classpath"/> | |
414 <path refid="library.teamcity_vcs_api.classpath"/> | |
415 </path> | |
416 | |
417 <path id="mercurial-server.runtime.module.classpath"> | |
418 <pathelement location="${mercurial-server.output.dir}"/> | |
419 <path refid="library.teamcityapi-server.classpath"/> | |
420 <path refid="library.idea-openapi.classpath"/> | |
421 <path refid="library.log4j.classpath"/> | |
422 <pathelement location="${mercurial-common.output.dir}"/> | |
423 <path refid="library.teamcityapi-common.classpath"/> | |
424 <path refid="library.jdom.classpath"/> | |
425 <path refid="library.teamcity_vcs_api.classpath"/> | |
426 </path> | |
427 | |
428 | |
429 <patternset id="excluded.from.module.mercurial-server"> | |
430 <patternset refid="ignored.files"/> | |
431 </patternset> | |
432 | |
433 <patternset id="excluded.from.compilation.mercurial-server"> | |
434 <patternset refid="excluded.from.module.mercurial-server"/> | |
435 </patternset> | |
436 | |
437 <path id="mercurial-server.module.sourcepath"> | |
438 <dirset dir="${module.mercurial-server.basedir}/mercurial-server"> | |
439 <include name="resources"/> | |
440 <include name="src"/> | |
441 </dirset> | |
442 </path> | |
443 | |
444 | |
445 <target name="compile.module.mercurial-server" depends="compile.module.mercurial-server.production,compile.module.mercurial-server.tests" description="Compile module mercurial-server"/> | |
446 | |
447 <target name="compile.module.mercurial-server.production" depends="compile.module.mercurial-common" description="Compile module mercurial-server; production classes"> | |
448 <mkdir dir="${mercurial-server.output.dir}"/> | |
449 <javac destdir="${mercurial-server.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true"> | |
450 <compilerarg line="${compiler.args.mercurial-server}"/> | |
451 <bootclasspath refid="mercurial-server.module.bootclasspath"/> | |
452 <classpath refid="mercurial-server.module.production.classpath"/> | |
453 <src refid="mercurial-server.module.sourcepath"/> | |
454 <patternset refid="excluded.from.compilation.mercurial-server"/> | |
455 </javac> | |
456 | |
457 <copy todir="${mercurial-server.output.dir}"> | |
458 <fileset dir="${module.mercurial-server.basedir}/mercurial-server/resources"> | |
459 <patternset refid="compiler.resources"/> | |
460 <type type="file"/> | |
461 </fileset> | |
462 <fileset dir="${module.mercurial-server.basedir}/mercurial-server/src"> | |
463 <patternset refid="compiler.resources"/> | |
464 <type type="file"/> | |
465 </fileset> | |
466 </copy> | |
467 </target> | |
468 | |
469 <target name="compile.module.mercurial-server.tests" depends="compile.module.mercurial-server.production" description="compile module mercurial-server; test classes" unless="skip.tests"/> | |
470 | |
471 <target name="clean.module.mercurial-server" description="cleanup module"> | |
472 <delete dir="${mercurial-server.output.dir}"/> | |
473 <delete dir="${mercurial-server.testoutput.dir}"/> | |
474 </target> | |
475 | |
476 | |
477 <!-- Module mercurial-tests --> | |
478 | |
479 <dirname property="module.mercurial-tests.basedir" file="${ant.file}"/> | |
480 | |
481 | |
482 | |
483 <property name="compiler.args.mercurial-tests" value="${compiler.args}"/> | |
484 | |
485 <property name="mercurial-tests.output.dir" value="${module.mercurial-tests.basedir}/mercurial-tests/classes"/> | |
486 <property name="mercurial-tests.testoutput.dir" value="${module.mercurial-tests.basedir}/mercurial-tests/classes"/> | |
487 | |
488 <path id="mercurial-tests.module.bootclasspath"> | |
489 <!-- Paths to be included in compilation bootclasspath --> | |
490 </path> | |
491 | |
492 <path id="mercurial-tests.module.production.classpath"> | |
493 <pathelement location="${mercurial-server.output.dir}"/> | |
494 <path refid="library.teamcityapi-server.classpath"/> | |
495 <path refid="library.idea-openapi.classpath"/> | |
496 <path refid="library.log4j.classpath"/> | |
497 <path refid="library.junit.classpath"/> | |
498 <path refid="library.testng.classpath"/> | |
499 <path refid="library.jmock.classpath"/> | |
500 <path refid="library.teamcityapi-common.classpath"/> | |
501 <pathelement location="${mercurial-common.output.dir}"/> | |
502 <pathelement location="${mercurial-agent.output.dir}"/> | |
503 <path refid="library.teamcity-testsapi.classpath"/> | |
504 <path refid="library.teamcity-impl.classpath"/> | |
505 <path refid="library.teamcityapi-agent.classpath"/> | |
506 <path refid="library.teamcity_vcs_api.classpath"/> | |
507 </path> | |
508 | |
509 <path id="mercurial-tests.runtime.production.module.classpath"> | |
510 <pathelement location="${mercurial-tests.output.dir}"/> | |
511 <pathelement location="${mercurial-server.output.dir}"/> | |
512 <path refid="library.teamcityapi-server.classpath"/> | |
513 <path refid="library.idea-openapi.classpath"/> | |
514 <path refid="library.log4j.classpath"/> | |
515 <pathelement location="${mercurial-common.output.dir}"/> | |
516 <path refid="library.teamcityapi-common.classpath"/> | |
517 <path refid="library.jdom.classpath"/> | |
518 <path refid="library.teamcity_vcs_api.classpath"/> | |
519 <path refid="library.junit.classpath"/> | |
520 <path refid="library.testng.classpath"/> | |
521 <path refid="library.jmock.classpath"/> | |
522 <pathelement location="${mercurial-agent.output.dir}"/> | |
523 <path refid="library.teamcityapi-agent.classpath"/> | |
524 <path refid="library.teamcity-testsapi.classpath"/> | |
525 <path refid="library.teamcity-impl.classpath"/> | |
526 </path> | |
527 | |
528 <path id="mercurial-tests.module.classpath"> | |
529 <pathelement location="${mercurial-tests.output.dir}"/> | |
530 <pathelement location="${mercurial-server.output.dir}"/> | |
531 <path refid="library.teamcityapi-server.classpath"/> | |
532 <path refid="library.idea-openapi.classpath"/> | |
533 <path refid="library.log4j.classpath"/> | |
534 <path refid="library.junit.classpath"/> | |
535 <path refid="library.testng.classpath"/> | |
536 <path refid="library.jmock.classpath"/> | |
537 <path refid="library.teamcityapi-common.classpath"/> | |
538 <pathelement location="${mercurial-common.output.dir}"/> | |
539 <pathelement location="${mercurial-agent.output.dir}"/> | |
540 <path refid="library.teamcity-testsapi.classpath"/> | |
541 <path refid="library.teamcity-impl.classpath"/> | |
542 <path refid="library.teamcityapi-agent.classpath"/> | |
543 <path refid="library.teamcity_vcs_api.classpath"/> | |
544 </path> | |
545 | |
546 <path id="mercurial-tests.runtime.module.classpath"> | |
547 <pathelement location="${mercurial-tests.output.dir}"/> | |
548 <pathelement location="${mercurial-server.output.dir}"/> | |
549 <path refid="library.teamcityapi-server.classpath"/> | |
550 <path refid="library.idea-openapi.classpath"/> | |
551 <path refid="library.log4j.classpath"/> | |
552 <pathelement location="${mercurial-common.output.dir}"/> | |
553 <path refid="library.teamcityapi-common.classpath"/> | |
554 <path refid="library.jdom.classpath"/> | |
555 <path refid="library.teamcity_vcs_api.classpath"/> | |
556 <path refid="library.junit.classpath"/> | |
557 <path refid="library.testng.classpath"/> | |
558 <path refid="library.jmock.classpath"/> | |
559 <pathelement location="${mercurial-agent.output.dir}"/> | |
560 <path refid="library.teamcityapi-agent.classpath"/> | |
561 <path refid="library.teamcity-testsapi.classpath"/> | |
562 <path refid="library.teamcity-impl.classpath"/> | |
563 </path> | |
564 | |
565 | |
566 <patternset id="excluded.from.module.mercurial-tests"> | |
567 <patternset refid="ignored.files"/> | |
568 </patternset> | |
569 | |
570 <patternset id="excluded.from.compilation.mercurial-tests"> | |
571 <patternset refid="excluded.from.module.mercurial-tests"/> | |
572 </patternset> | |
573 | |
574 <path id="mercurial-tests.module.test.sourcepath"> | |
575 <dirset dir="${module.mercurial-tests.basedir}/mercurial-tests"> | |
576 <include name="src"/> | |
577 </dirset> | |
578 </path> | |
579 | |
580 | |
581 <target name="compile.module.mercurial-tests" depends="compile.module.mercurial-tests.production,compile.module.mercurial-tests.tests" description="Compile module mercurial-tests"/> | |
582 | |
583 <target name="compile.module.mercurial-tests.production" depends="compile.module.mercurial-server,compile.module.mercurial-common,compile.module.mercurial-agent" description="Compile module mercurial-tests; production classes"/> | |
584 | |
585 <target name="compile.module.mercurial-tests.tests" depends="compile.module.mercurial-tests.production" description="compile module mercurial-tests; test classes" unless="skip.tests"> | |
586 <mkdir dir="${mercurial-tests.testoutput.dir}"/> | |
587 <javac destdir="${mercurial-tests.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true"> | |
588 <compilerarg line="${compiler.args.mercurial-tests}"/> | |
589 <bootclasspath refid="mercurial-tests.module.bootclasspath"/> | |
590 <classpath refid="mercurial-tests.module.classpath"/> | |
591 <src refid="mercurial-tests.module.test.sourcepath"/> | |
592 <patternset refid="excluded.from.compilation.mercurial-tests"/> | |
593 </javac> | |
594 | |
595 <copy todir="${mercurial-tests.testoutput.dir}"> | |
596 <fileset dir="${module.mercurial-tests.basedir}/mercurial-tests/src"> | |
597 <patternset refid="compiler.resources"/> | |
598 <type type="file"/> | |
599 </fileset> | |
600 </copy> | |
601 </target> | |
602 | |
603 <target name="clean.module.mercurial-tests" description="cleanup module"> | |
604 <delete dir="${mercurial-tests.output.dir}"/> | |
605 <delete dir="${mercurial-tests.testoutput.dir}"/> | |
606 </target> | |
607 | |
608 <target name="init" description="Build initialization"> | |
609 <!-- Perform any build initialization in this target --> | |
610 </target> | |
611 | |
612 <target name="clean" depends="clean.module.main, clean.module.mercurial-common, clean.module.mercurial-agent, clean.module.mercurial-server, clean.module.mercurial-tests" description="cleanup all"/> | |
613 | |
614 <target name="build.modules" depends="init, clean, compile.module.main, compile.module.mercurial-common, compile.module.mercurial-agent, compile.module.mercurial-server, compile.module.mercurial-tests" description="build all modules"/> | |
615 | |
616 <target name="all" depends="build.modules" description="build all"/> | |
5 | 617 </project> |