check misprint
[teamcity/dotNetPackagesSupport.git] / build / ant.build.xml
index 978ebbeaf96c25bcaf7e7afef48bb827f2a3ffe6..0231d18adc7617f166cbc76a238cb141d1c06516 100644 (file)
@@ -6,17 +6,18 @@
 \r
     <echo message="replacing tokens in teamcity-plugin.xml file under ${home}"/>\r
 \r
-    <condition property="build.numner" value="snapshot">\r
+    <condition property="build.number" value="snapshot" else="${build.number}">\r
       <not>\r
         <isset property="build.number"/>\r
       </not>\r
     </condition>\r
 \r
+    <echo message="Setting version to: ${build.number}"/>\r
     <!-- update all references in teamcity-plugin.xml files -->\r
     <replace dir="${home}" summary="true">\r
       <include name="**/teamcity-plugin.xml"/>\r
 \r
-      <replacefilter token="@Plugin_Version@" value="${build.numner}"/>\r
+      <replacefilter token="@Plugin_Version@" value="${build.number}"/>\r
       <replacefilter token="@Plugin_Vendor@" value="JetBrains, s.r.o."/>\r
       <replacefilter token="@Plugin_Vendor_Url@" value="http://www.jetbrains.com"/>\r
     </replace>\r