add plugin version patching
[teamcity/dotNetPackagesSupport.git] / build / ant.build.xml
1 <project name="build hooks" default="replace-tokens-in-teamcity-plugin-xml" basedir=".">\r
2 \r
3 \r
4   <target name="replace-tokens-in-teamcity-plugin-xml">\r
5     <property name="home" value="${artifact.output.path}"/>\r
6 \r
7     <echo message="replacing tokens in teamcity-plugin.xml file under ${home}"/>\r
8 \r
9     <condition property="build.numner" value="snapshot">\r
10       <not>\r
11         <isset property="build.number"/>\r
12       </not>\r
13     </condition>\r
14 \r
15     <!-- update all references in teamcity-plugin.xml files -->\r
16     <replace dir="${home}" summary="true">\r
17       <include name="**/teamcity-plugin.xml"/>\r
18 \r
19       <replacefilter token="@Plugin_Version@" value="${build.numner}"/>\r
20       <replacefilter token="@Plugin_Vendor@" value="JetBrains, s.r.o."/>\r
21       <replacefilter token="@Plugin_Vendor_Url@" value="http://www.jetbrains.com"/>\r
22     </replace>\r
23   </target>\r
24 \r
25 </project>