annotate build.xml @ 109:6ea2cd13db83

minor
author Pavel.Sher
date Fri, 02 Jul 2010 22:35:12 +0400
parents d7330bc105aa
children ac87537fe4ff
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 plugin.descriptor.file="${basedir}/teamcity-plugin.xml"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
17 plugin.version="${plugin.version}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
18 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
19
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
20 <target name="define.version" depends="define.version.if.under.teamcity">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
21 <tstamp>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
22 <format property="current.time" pattern="yyyyMMddHHmm"/>
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 <property name="plugin.version" value="SNAPSHOT-${current.time}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
25 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
26
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
27 <target name="define.version.if.under.teamcity" if="build.number">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
28 <property name="plugin.version" value="${build.number}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
29 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
30
78
1dcede89a079 preparing to bundle with TeamCity
Pavel.Sher
parents: 77
diff changeset
31 <target name="dist" depends="check.teamcitydistribution,all,package"/>
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
32
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
33 <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
34
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
35 <path id="tests_classpath">
52
4199d7e08d6e extracting runtime-util.jar
Pavel.Sher
parents: 51
diff changeset
36 <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/>
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
37 <pathelement location="${agent.home.dir}/lib/buildServerRuntimeUtil.jar"/>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
38 <path refid="mercurial-tests.runtime.module.classpath"/>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
39 </path>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
40
107
d7330bc105aa fix tests execution
Pavel.Sher
parents: 83
diff changeset
41 <target name="run-tests" depends="clean, init, compile.module.mercurial-tests">
50
d4b7dcc8d66e add ability to debug mercurial tests
Pavel.Sher
parents: 37
diff changeset
42 <property name="suspend" value="n"/>
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
43
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
44 <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter"
82
3418c64c2c0a one more attempt to fix tests
Pavel.Sher
parents: 78
diff changeset
45 outputdir="${basedir}/test-output" classpathref="tests_classpath" dumpcommand="true" workingDir="${basedir}">
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
46
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
47 <jvmarg value="-ea"/>
69
133e105cf0b8 disable debug in tests
Pavel.Sher
parents: 68
diff changeset
48 <!--<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5555"/>-->
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
49
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
50 <sysproperty key="java.awt.headless" value="true"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
51
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
52 <xmlfileset dir="${basedir}/mercurial-tests/src">
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
53 <include name="testng.xml"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
54 </xmlfileset>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
55 </testng>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
56 </target>
109
Pavel.Sher
parents: 107
diff changeset
57 </project>