<project version="4">\r
<component name="AntConfiguration">\r
<defaultAnt bundledAnt="true" />\r
+ <buildFile url="file://$PROJECT_DIR$/build/ant.build.xml">\r
+ <additionalClassPath />\r
+ <antReference projectDefault="true" />\r
+ <customJdkName value="" />\r
+ <maximumHeapSize value="128" />\r
+ <maximumStackSize value="2" />\r
+ <properties />\r
+ </buildFile>\r
</component>\r
</project>\r
\r
<component name="ArtifactManager">\r
<artifact name="plugin">\r
<output-path>$PROJECT_DIR$/out/artifacts/plugin</output-path>\r
+ <properties id="ant-postprocessing">\r
+ <options enabled="true">\r
+ <file>file://$PROJECT_DIR$/build/ant.build.xml</file>\r
+ <target>replace-tokens-in-teamcity-plugin-xml</target>\r
+ </options>\r
+ </properties>\r
<root id="root">\r
<element id="directory" name="agent">\r
<element id="archive" name="nuget-agent.zip">\r
--- /dev/null
+<project name="build hooks" default="replace-tokens-in-teamcity-plugin-xml" basedir=".">\r
+\r
+\r
+ <target name="replace-tokens-in-teamcity-plugin-xml">\r
+ <property name="home" value="${artifact.output.path}"/>\r
+\r
+ <echo message="replacing tokens in teamcity-plugin.xml file under ${home}"/>\r
+\r
+ <condition property="build.numner" value="snapshot">\r
+ <not>\r
+ <isset property="build.number"/>\r
+ </not>\r
+ </condition>\r
+\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_Vendor@" value="JetBrains, s.r.o."/>\r
+ <replacefilter token="@Plugin_Vendor_Url@" value="http://www.jetbrains.com"/>\r
+ </replace>\r
+ </target>\r
+\r
+</project>
\ No newline at end of file