annotate mercurial.xml @ 5:8e6ade135483

first version of build.xml
author Pavel.Sher
date Mon, 14 Jul 2008 20:09:42 +0400
parents
children c05869fe20af
rev   line source
5
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
1 <?xml version="1.0" encoding="ISO-8859-1"?>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
2 <project name="mercurial" default="all">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
3
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
4
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
5 <property file="mercurial.properties"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
6 <!-- Uncomment the following property if no tests compilation is needed -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
7 <!--
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
8 <property name="skip.tests" value="true"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
9 -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
10
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
11 <!-- Compiler options -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
12
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
13 <property name="compiler.debug" value="on"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
14 <property name="compiler.generate.no.warnings" value="off"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
15 <property name="compiler.args" value=""/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
16 <property name="compiler.max.memory" value="128m"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
17 <patternset id="ignored.files">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
18 <exclude name="**/CVS/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
19 <exclude name="**/SCCS/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
20 <exclude name="**/RCS/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
21 <exclude name="**/rcs/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
22 <exclude name="**/.DS_Store/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
23 <exclude name="**/.svn/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
24 <exclude name="**/vssver.scc/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
25 <exclude name="**/vssver2.scc/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
26 <exclude name="**/.sbas/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
27 <exclude name="**/.IJI.*/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
28 <exclude name="**/.pyc/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
29 <exclude name="**/.pyo/**"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
30 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
31 <patternset id="compiler.resources">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
32 <include name="**/?*.properties"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
33 <include name="**/?*.xml"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
34 <include name="**/?*.gif"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
35 <include name="**/?*.png"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
36 <include name="**/?*.jpeg"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
37 <include name="**/?*.jpg"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
38 <include name="**/?*.html"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
39 <include name="**/?*.dtd"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
40 <include name="**/?*.tld"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
41 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
42
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
43
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
44 <!-- Project Libraries -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
45
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
46 <path id="library.teamcity-openapi.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
47 <pathelement location="${basedir}/mercurial/lib/server-openapi.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
48 <pathelement location="${basedir}/mercurial/lib/web-openapi.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
49 <pathelement location="${basedir}/mercurial/lib/server-model.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
50 <pathelement location="${basedir}/mercurial/lib/common.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
51 <pathelement location="${basedir}/mercurial/lib/utils.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
52 <pathelement location="${basedir}/mercurial/lib/patches.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
53 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
54
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
55 <path id="library.idea-openapi.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
56 <pathelement location="${basedir}/mercurial/lib/annotations.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
57 <pathelement location="${basedir}/mercurial/lib/openapi.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
58 <pathelement location="${basedir}/mercurial/lib/util.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
59 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
60
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
61 <path id="library.teamcity-testssupport.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
62 <pathelement location="${basedir}/mercurial-tests/lib/patches-tests.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
63 <pathelement location="${basedir}/mercurial-tests/lib/test.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
64 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
65
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
66 <path id="library.junit.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
67 <pathelement location="${basedir}/mercurial-tests/lib/junit-3.8.1.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
68 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
69
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
70 <path id="library.testng.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
71 <pathelement location="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
72 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
73
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
74 <path id="library.jmock.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
75 <pathelement location="${basedir}/mercurial-tests/lib/jmock-SNAPSHOT.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
76 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
77
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
78 <path id="library.teamcity-impl.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
79 <pathelement location="${basedir}/mercurial/lib/patches-impl.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
80 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
81
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
82 <path id="library.log4j.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
83 <pathelement location="${basedir}/mercurial/lib/log4j-1.2.12.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
84 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
85
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
86 <path id="library.gnu_trove.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
87 <pathelement location="${basedir}/mercurial/lib/trove4j.jar"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
88 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
89
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
90
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
91 <!-- Application Server Libraries -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
92
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
93 <!-- Modules -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
94
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
95
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
96 <!-- Module main -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
97
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
98 <dirname property="module.main.basedir" file="${ant.file}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
99
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
100
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
101
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
102 <property name="compiler.args.main" value="${compiler.args}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
103
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
104 <property name="main.output.dir" value="${module.main.basedir}/out/production/main"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
105 <property name="main.testoutput.dir" value="${module.main.basedir}/out/test/main"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
106
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
107 <path id="main.module.bootclasspath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
108 <!-- Paths to be included in compilation bootclasspath -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
109 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
110
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
111 <path id="main.module.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
112
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
113 <path id="main.runtime.module.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
114 <pathelement location="${main.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
115 <pathelement location="${main.testoutput.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
116 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
117
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
118
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
119 <patternset id="excluded.from.module.main">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
120 <patternset refid="ignored.files"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
121 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
122
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
123 <patternset id="excluded.from.compilation.main">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
124 <patternset refid="excluded.from.module.main"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
125 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
126
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
127
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
128 <target name="compile.module.main" depends="compile.module.main.production,compile.module.main.tests" description="Compile module main"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
129
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
130 <target name="compile.module.main.production" description="Compile module main; production classes"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
131
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
132 <target name="compile.module.main.tests" depends="compile.module.main.production" description="compile module main; test classes" unless="skip.tests"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
133
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
134 <target name="clean.module.main" description="cleanup module">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
135 <delete dir="${main.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
136 <delete dir="${main.testoutput.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
137 </target>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
138
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
139
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
140 <!-- Module mercurial -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
141
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
142 <dirname property="module.mercurial.basedir" file="${ant.file}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
143
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
144
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
145
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
146 <property name="compiler.args.mercurial" value="${compiler.args}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
147
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
148 <property name="mercurial.output.dir" value="${module.mercurial.basedir}/mercurial/classes"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
149 <property name="mercurial.testoutput.dir" value="${module.mercurial.basedir}/mercurial/classes"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
150
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
151 <path id="mercurial.module.bootclasspath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
152 <!-- Paths to be included in compilation bootclasspath -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
153 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
154
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
155 <path id="mercurial.module.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
156 <path refid="library.teamcity-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
157 <path refid="library.idea-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
158 <path refid="library.teamcity-impl.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
159 <path refid="library.log4j.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
160 <path refid="library.gnu_trove.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
161 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
162
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
163 <path id="mercurial.runtime.module.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
164 <pathelement location="${mercurial.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
165 <path refid="library.teamcity-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
166 <path refid="library.idea-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
167 <path refid="library.teamcity-impl.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
168 <path refid="library.log4j.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
169 <path refid="library.gnu_trove.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
170 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
171
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
172
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
173 <patternset id="excluded.from.module.mercurial">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
174 <patternset refid="ignored.files"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
175 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
176
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
177 <patternset id="excluded.from.compilation.mercurial">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
178 <patternset refid="excluded.from.module.mercurial"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
179 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
180
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
181 <path id="mercurial.module.sourcepath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
182 <dirset dir="${module.mercurial.basedir}/mercurial">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
183 <include name="resources/buildServerResources"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
184 <include name="src"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
185 </dirset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
186 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
187
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
188
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
189 <target name="compile.module.mercurial" depends="compile.module.mercurial.production,compile.module.mercurial.tests" description="Compile module mercurial"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
190
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
191 <target name="compile.module.mercurial.production" description="Compile module mercurial; production classes">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
192 <mkdir dir="${mercurial.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
193 <javac destdir="${mercurial.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
194 <compilerarg line="${compiler.args.mercurial}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
195 <bootclasspath refid="mercurial.module.bootclasspath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
196 <classpath refid="mercurial.module.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
197 <src refid="mercurial.module.sourcepath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
198 <patternset refid="excluded.from.compilation.mercurial"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
199 </javac>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
200
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
201 <copy todir="${mercurial.output.dir}">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
202 <fileset dir="${module.mercurial.basedir}/mercurial/resources/buildServerResources">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
203 <patternset refid="compiler.resources"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
204 <type type="file"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
205 </fileset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
206 <fileset dir="${module.mercurial.basedir}/mercurial/src">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
207 <patternset refid="compiler.resources"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
208 <type type="file"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
209 </fileset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
210 </copy>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
211 </target>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
212
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
213 <target name="compile.module.mercurial.tests" depends="compile.module.mercurial.production" description="compile module mercurial; test classes" unless="skip.tests"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
214
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
215 <target name="clean.module.mercurial" description="cleanup module">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
216 <delete dir="${mercurial.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
217 <delete dir="${mercurial.testoutput.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
218 </target>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
219
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
220
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
221 <!-- Module mercurial-tests -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
222
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
223 <dirname property="module.mercurial-tests.basedir" file="${ant.file}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
224
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
225
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
226
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
227 <property name="compiler.args.mercurial-tests" value="${compiler.args}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
228
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
229 <property name="mercurial-tests.output.dir" value="${module.mercurial-tests.basedir}/mercurial-tests/classes"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
230 <property name="mercurial-tests.testoutput.dir" value="${module.mercurial-tests.basedir}/mercurial-tests/classes"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
231
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
232 <path id="mercurial-tests.module.bootclasspath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
233 <!-- Paths to be included in compilation bootclasspath -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
234 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
235
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
236 <path id="mercurial-tests.module.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
237 <pathelement location="${mercurial.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
238 <path refid="library.teamcity-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
239 <path refid="library.idea-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
240 <path refid="library.teamcity-impl.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
241 <path refid="library.log4j.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
242 <path refid="library.gnu_trove.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
243 <path refid="library.teamcity-testssupport.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
244 <path refid="library.junit.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
245 <path refid="library.testng.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
246 <path refid="library.jmock.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
247 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
248
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
249 <path id="mercurial-tests.runtime.module.classpath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
250 <pathelement location="${mercurial-tests.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
251 <pathelement location="${mercurial.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
252 <path refid="library.teamcity-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
253 <path refid="library.idea-openapi.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
254 <path refid="library.teamcity-impl.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
255 <path refid="library.log4j.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
256 <path refid="library.gnu_trove.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
257 <path refid="library.teamcity-testssupport.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
258 <path refid="library.junit.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
259 <path refid="library.testng.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
260 <path refid="library.jmock.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
261 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
262
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
263
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
264 <patternset id="excluded.from.module.mercurial-tests">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
265 <patternset refid="ignored.files"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
266 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
267
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
268 <patternset id="excluded.from.compilation.mercurial-tests">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
269 <patternset refid="excluded.from.module.mercurial-tests"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
270 </patternset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
271
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
272 <path id="mercurial-tests.module.sourcepath">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
273 <dirset dir="${module.mercurial-tests.basedir}/mercurial-tests">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
274 <include name="src"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
275 </dirset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
276 </path>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
277
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
278
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
279 <target name="compile.module.mercurial-tests" depends="compile.module.mercurial-tests.production,compile.module.mercurial-tests.tests" description="Compile module mercurial-tests"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
280
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
281 <target name="compile.module.mercurial-tests.production" depends="compile.module.mercurial" description="Compile module mercurial-tests; production classes">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
282 <mkdir dir="${mercurial-tests.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
283 <javac destdir="${mercurial-tests.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
284 <compilerarg line="${compiler.args.mercurial-tests}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
285 <bootclasspath refid="mercurial-tests.module.bootclasspath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
286 <classpath refid="mercurial-tests.module.classpath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
287 <src refid="mercurial-tests.module.sourcepath"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
288 <patternset refid="excluded.from.compilation.mercurial-tests"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
289 </javac>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
290
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
291 <copy todir="${mercurial-tests.output.dir}">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
292 <fileset dir="${module.mercurial-tests.basedir}/mercurial-tests/src">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
293 <patternset refid="compiler.resources"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
294 <type type="file"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
295 </fileset>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
296 </copy>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
297 </target>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
298
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
299 <target name="compile.module.mercurial-tests.tests" depends="compile.module.mercurial-tests.production" description="compile module mercurial-tests; test classes" unless="skip.tests"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
300
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
301 <target name="clean.module.mercurial-tests" description="cleanup module">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
302 <delete dir="${mercurial-tests.output.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
303 <delete dir="${mercurial-tests.testoutput.dir}"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
304 </target>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
305
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
306 <target name="init" description="Build initialization">
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
307 <!-- Perform any build initialization in this target -->
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
308 </target>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
309
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
310 <target name="clean" depends="clean.module.main, clean.module.mercurial, clean.module.mercurial-tests" description="cleanup all"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
311
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
312 <target name="all" depends="init, clean, compile.module.main, compile.module.mercurial, compile.module.mercurial-tests" description="build all"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
313 </project>