annotate build.xml @ 78:1dcede89a079

preparing to bundle with TeamCity
author Pavel.Sher
date Fri, 09 Oct 2009 17:51:26 +0400
parents cfbeaf010bd4
children 3418c64c2c0a
rev   line source
6
c05869fe20af dist target added
Pavel.Sher
parents: 5
diff changeset
1 <project name="Mercurial VCS Support" default="dist" basedir=".">
5
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
2 <property file="mercurial.properties"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
3 <import file="mercurial.xml"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
4
6
c05869fe20af dist target added
Pavel.Sher
parents: 5
diff changeset
5 <property name="distPath" value="${basedir}/dist"/>
5
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
6
77
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
7 <property name="plugin.name" value="mercurial"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
8
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
9 <import file="teamcity-common.xml"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
10
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
11 <target name="package" depends="define.version">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
12 <package.teamcity.plugin name="${plugin.name}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
13 server.output="${mercurial-server.output.dir}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
14 agent.output="${mercurial-agent.output.dir}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
15 common.output="${mercurial-common.output.dir}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
16 server.lib.dir="lib"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
17 server.lib.includes="*.jar"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
18 plugin.descriptor.file="${basedir}/teamcity-plugin.xml"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
19 plugin.version="${plugin.version}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
20 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
21
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
22 <target name="define.version" depends="define.version.if.under.teamcity">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
23 <tstamp>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
24 <format property="current.time" pattern="yyyyMMddHHmm"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
25 </tstamp>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
26 <property name="plugin.version" value="SNAPSHOT-${current.time}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
27 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
28
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
29 <target name="define.version.if.under.teamcity" if="build.number">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
30 <property name="plugin.version" value="${build.number}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
31 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
32
78
1dcede89a079 preparing to bundle with TeamCity
Pavel.Sher
parents: 77
diff changeset
33 <target name="dist" depends="check.teamcitydistribution,all,package"/>
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
34
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
35 <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
36
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
37 <path id="tests_classpath">
52
4199d7e08d6e extracting runtime-util.jar
Pavel.Sher
parents: 51
diff changeset
38 <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/>
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
39 <pathelement location="${agent.home.dir}/lib/buildServerRuntimeUtil.jar"/>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
40 <path refid="mercurial-tests.runtime.module.classpath"/>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
41 </path>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
42
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
43 <target name="run-tests" depends="clean, init, compile.module.mercurial-tests.production">
50
d4b7dcc8d66e add ability to debug mercurial tests
Pavel.Sher
parents: 37
diff changeset
44 <property name="suspend" value="n"/>
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
45
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
46 <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter"
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
47 outputdir="${basedir}/test-output" classpathref="tests_classpath" dumpcommand="true">
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
48
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
49 <jvmarg value="-ea"/>
69
133e105cf0b8 disable debug in tests
Pavel.Sher
parents: 68
diff changeset
50 <!--<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5555"/>-->
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
51
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
52 <sysproperty key="java.awt.headless" value="true"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
53
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
54 <xmlfileset dir="${basedir}/mercurial-tests/src">
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
55 <include name="testng.xml"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
56 </xmlfileset>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
57 </testng>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
58 </target>
5
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
59 </project>