view build/ant.build.xml @ 615:7ea82d063131 Gaya-8.0.x

TW-30589 fix create temp dir race condition
author Dmitry Neverov <dmitry.neverov@gmail.com>
date Thu, 01 Aug 2013 11:53:48 +0400
parents f77000a89e97
children 7a4ecffe34a9
line wrap: on
line source
<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>