annotate build.xml @ 609:86e187882960 Gaya-8.0.x

Test for TW-29998
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Fri, 28 Jun 2013 12:06:09 +0400
parents 643fa1236f4e
children 31a1aca3305c
rev   line source
266
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
1 <project name="Mercurial VCS Support" default="dist" basedir=".">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
2 <property file="mercurial.properties"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
3 <import file="mercurial.xml"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
4
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
5 <property name="distPath" value="${basedir}/dist"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
6
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
7 <property name="plugin.name" value="mercurial"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
8
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
9 <property name="build.number" value=""/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
10 <tstamp>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
11 <format property="timestamp" pattern="yyyyMMddhhmmss"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
12 </tstamp>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
13 <property name="snapshot.build.number" value="SNAPSHOT-${timestamp}"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
14 <property name="build.vcs.number" value=""/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
15
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
16 <condition property="plugin.version" value="${snapshot.build.number}" else="${build.number}">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
17 <matches pattern="snapshot-.*" string="${build.number}" casesensitive="false"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
18 </condition>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
19
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
20 <import file="teamcity-common.xml"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
21
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
22 <target name="package" depends="define.version">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
23 <package.teamcity.plugin name="${plugin.name}"
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
24 server.output="${mercurial-server.output.dir}"
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
25 agent.output="${mercurial-agent.output.dir}"
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
26 common.output="${mercurial-common.output.dir}"
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
27 plugin.descriptor.file="${basedir}/teamcity-plugin.xml"
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
28 plugin.version="${plugin.version}"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
29 </target>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
30
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
31 <target name="define.version" depends="define.version.if.under.teamcity">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
32 <tstamp>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
33 <format property="current.time" pattern="yyyyMMddHHmm"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
34 </tstamp>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
35 <property name="plugin.version" value="SNAPSHOT-${current.time}"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
36 </target>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
37
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
38 <target name="define.version.if.under.teamcity" if="build.number">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
39 <property name="plugin.version" value="${build.number}"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
40 </target>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
41
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
42 <target name="dist" depends="check.teamcitydistribution,all,package"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
43
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
44 <target name="deploy" depends="dist">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
45 <deploy.teamcity.plugin name="${plugin.name}"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
46 </target>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
47
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
48 <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
49
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
50 <path id="tests_classpath">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
51 <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
52 <pathelement location="${agent.home.dir}/lib/buildServerRuntimeUtil.jar"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
53 <path refid="mercurial-tests.runtime.module.classpath"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
54 </path>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
55
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
56 <target name="run-tests" depends="clean, init, compile.module.mercurial-tests">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
57 <property name="suspend" value="n"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
58
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
59 <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter"
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
60 outputdir="${basedir}/test-output" classpathref="tests_classpath" dumpcommand="true" workingDir="${basedir}">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
61
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
62 <jvmarg value="-ea"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
63 <!--<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5555"/>-->
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
64
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
65 <sysproperty key="java.awt.headless" value="true"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
66
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
67 <xmlfileset dir="${basedir}/mercurial-tests/src">
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
68 <include name="testng.xml"/>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
69 </xmlfileset>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
70 </testng>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
71 </target>
643fa1236f4e Fix file encoding
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 166
diff changeset
72 </project>