Mercurial > hg > mercurial
diff build/ant.build.xml @ 490:f77000a89e97
Add idea artifacts
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Thu, 04 Oct 2012 11:32:36 +0400 |
parents | |
children | 7a4ecffe34a9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/ant.build.xml Thu Oct 04 11:32:36 2012 +0400 @@ -0,0 +1,24 @@ +<project name="build hooks" default="replace-tokens-in-teamcity-plugin-xml" basedir="."> + + + <target name="replace-tokens-in-teamcity-plugin-xml"> + <property name="home" value="${artifact.output.path}"/> + + <echo message="replacing tokens in teamcity-plugin.xml file under ${home}"/> + + <condition property="build.number" value="snapshot" else="${build.number}"> + <not> + <isset property="build.number"/> + </not> + </condition> + + <echo message="Setting version to: ${build.number}"/> + <!-- update all references in teamcity-plugin.xml files --> + <replace dir="${home}" summary="true"> + <include name="**/teamcity-plugin.xml"/> + + <replacefilter token="@Plugin_Version@" value="${build.number}"/> + </replace> + </target> + +</project>