improve logging
[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.number" value="snapshot" else="${build.number}">\r
10       <not>\r
11         <isset property="build.number"/>\r
12       </not>\r
13     </condition>\r
14 \r
15     <echo message="Setting version to: ${build.number}"/>\r
16     <!-- update all references in teamcity-plugin.xml files -->\r
17     <replace dir="${home}" summary="true">\r
18       <include name="**/teamcity-plugin.xml"/>\r
19 \r
20       <replacefilter token="@Plugin_Version@" value="${build.number}"/>\r
21       <replacefilter token="@Plugin_Vendor@" value="JetBrains, s.r.o."/>\r
22       <replacefilter token="@Plugin_Vendor_Url@" value="http://www.jetbrains.com"/>\r
23     </replace>\r
24   </target>\r
25 \r
26 </project>