Replicate IDEA plugin versions only on TeamCity build
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<macrodef name="replicateIdeaVersion">
|
||||
<attribute name="target.file"/>
|
||||
<attribute name="idea-version-pattern" default="<idea-version since-build="[0-9.]+" until-build="[0-9.]+"/>"/>
|
||||
<attribute name="replace-pattern" default="<!-- IDEA VERSION -->"/>
|
||||
|
||||
<sequential>
|
||||
<loadfile srcfile="${plugin.xml}" property="main.plugin.version">
|
||||
@@ -34,11 +35,7 @@
|
||||
</condition>
|
||||
</fail>
|
||||
|
||||
<replaceregexp file="@{target.file}" byline="true" match="@{idea-version-pattern}" replace="${main.plugin.version}" />
|
||||
<replaceregexp file="@{target.file}" byline="true" match="@{replace-pattern}" replace="${main.plugin.version}" />
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<target name="replicateIdeaVersions">
|
||||
<replicateIdeaVersion target.file="${android-extensions.plugin.xml}" />
|
||||
</target>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user