annotate build/ant.build.xml @ 117:d2c79f95c2a6 tip

remove tailing slash in teamcity server url when constructing symbol server url
author Evgeniy.Koshkin@unit-519.Labs.IntelliJ.Net
date Fri, 27 May 2016 15:27:30 +0300
parents c36d3305ed62
children
rev   line source
0
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
1 <project name="build hooks" default="replace-tokens-in-teamcity-plugin-xml" basedir=".">
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
2
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
3
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
4 <target name="replace-tokens-in-teamcity-plugin-xml">
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
5 <property name="home" value="${artifact.output.path}"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
6
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
7 <echo message="replacing tokens in teamcity-plugin.xml file under ${home}"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
8
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
9 <tstamp>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
10 <format property="current.time" pattern="yyyyMMddHHmm"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
11 </tstamp>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
12 <condition property="build.number" value="SNAPSHOT-${current.time}" else="${build.number}">
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
13 <not>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
14 <isset property="build.number"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
15 </not>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
16 </condition>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
17
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
18 <echo message="Setting version to: ${build.number}"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
19 <!-- update all references in teamcity-plugin.xml files -->
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
20 <replace dir="${home}" summary="true">
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
21 <include name="**/teamcity-plugin.xml"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
22
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
23 <replacefilter token="@Plugin_Version@" value="${build.number}"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
24 <replacefilter token="@Plugin_Vendor@" value="JetBrains, s.r.o."/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
25 <replacefilter token="@Plugin_Vendor_Url@" value="http://www.jetbrains.com"/>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
26 </replace>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
27 </target>
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
28
c36d3305ed62 initial project structure
Evgeniy.Koshkin
parents:
diff changeset
29 </project>