annotate mercurial.xml @ 596:a37960e1f0a0

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