annotate mercurial-tests/mercurial-tests.iml @ 280:8c1fd2e565ae

Implement mercurial detection on the agents When agent starts, hg-plugin detects installed hg (searches it in the $PATH). If plugin is able to run hg and hg has an approrpiate version (1.5.2+), then plugin reports path to hg in the 'teamcity.hg.agent.path' parameter. This parameter can be used in the "HG command path" field in a VCS root settings, configurations with such root will be run only on agents which report path to hg. Also user can set this parameter manually in the buildAgent.properties. A server side of plugin first checks value of internal property 'teamcity.hg.server.path' and if property is set, its value is used. Second, plugin tries to use path from the settings of VCS root: if path is equal to '%teamcity.hg.agent.path%' - use 'hg' as path, otherwise use a value from the root. With such order old setups, where path in the VCS root was used on both server and agent, will continue to work. New VCS roots with references in the path will also work if hg is in the $PATH on the server or internal property is set.
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Fri, 19 Aug 2011 15:21:38 +0400
parents 8587a9c22d55
children 774229a5fcd2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
2 <module relativePaths="true" type="JAVA_MODULE" version="4">
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
3 <component name="NewModuleRootManager" inherit-compiler-output="false">
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
4 <output url="file://$MODULE_DIR$/classes" />
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
5 <exclude-output />
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
6 <content url="file://$MODULE_DIR$">
77
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 40
diff changeset
7 <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="true" />
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
8 </content>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
9 <orderEntry type="inheritedJdk" />
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
10 <orderEntry type="sourceFolder" forTests="false" />
27
7944e8985ebd prepare modules structure for agent side checkout
Pavel.Sher
parents: 1
diff changeset
11 <orderEntry type="module" module-name="mercurial-server" />
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
12 <orderEntry type="library" name="JUnit" level="project" />
1
56e7f34ca887 added TeamCity libs, fix tests
Pavel.Sher
parents: 0
diff changeset
13 <orderEntry type="library" name="TestNG" level="project" />
56e7f34ca887 added TeamCity libs, fix tests
Pavel.Sher
parents: 0
diff changeset
14 <orderEntry type="library" name="JMock" level="project" />
27
7944e8985ebd prepare modules structure for agent side checkout
Pavel.Sher
parents: 1
diff changeset
15 <orderEntry type="library" name="TeamCityAPI-common" level="project" />
7944e8985ebd prepare modules structure for agent side checkout
Pavel.Sher
parents: 1
diff changeset
16 <orderEntry type="module" module-name="mercurial-common" />
34
0052d368c90c initial working version of agent side checkout + some tests
Pavel.Sher
parents: 27
diff changeset
17 <orderEntry type="module" module-name="mercurial-agent" />
77
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 40
diff changeset
18 <orderEntry type="library" name="TeamCity-TestsAPI" level="project" />
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 40
diff changeset
19 <orderEntry type="library" name="TeamCity-impl" level="project" />
106
8587a9c22d55 switch to new API
Pavel.Sher
parents: 77
diff changeset
20 <orderEntry type="library" name="TeamCityAPI-agent" level="project" />
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
21 </component>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
22 </module>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
23