Replicate IDEA plugin versions only on TeamCity build

This commit is contained in:
Yan Zhulanow
2015-03-25 21:54:08 +03:00
parent 7b15f9c7c9
commit 1338e0cd0a
5 changed files with 6 additions and 13 deletions
-6
View File
@@ -1,12 +1,6 @@
<component name="ArtifactManager">
<artifact name="KotlinAndroidExtensions">
<output-path>$PROJECT_DIR$/out/artifacts/KotlinAndroidExtensions</output-path>
<properties id="ant-preprocessing">
<options enabled="true">
<file>file://$PROJECT_DIR$/replicate_versions.xml</file>
<target>replicateIdeaVersions</target>
</options>
</properties>
<root id="root">
<element id="directory" name="lib">
<element id="archive" name="kotlin-android-extensions.jar">
+3
View File
@@ -1,5 +1,6 @@
<project name="Jet CI Steps" default="none">
<import file="build.xml" optional="false"/>
<import file="replicate_versions.xml" optional="false"/>
<property name="build.number" value="snapshot"/>
<property name="jdk16.home" value="${java.home}"/>
@@ -97,6 +98,8 @@
target.file.bk="${compiler.version.java.bk}"
target.file.versioned="${compiler.version.java.versioned}"
test.string="public static final String VERSION = &quot;@snapshot@&quot;;"/>
<replicateIdeaVersion target.file="${android-extensions.plugin.xml}" />
</target>
<target name="revertTemplateFiles">
-1
View File
@@ -6,7 +6,6 @@
<version>@snapshot@</version>
<vendor url="http://www.jetbrains.com">JetBrains s.r.o.</vendor>
<!-- Run replicateIdeaVersions Ant task after changing the versions. -->
<idea-version since-build="141.2" until-build="141.9999"/>
<depends optional="true" config-file="junit.xml">JUnit</depends>
@@ -6,7 +6,7 @@
<version>@snapshot@</version>
<vendor url="http://www.jetbrains.com">JetBrains Inc.</vendor>
<idea-version since-build="141.2" until-build="141.9999"/>
<!-- IDEA VERSION -->
<depends optional="false">org.jetbrains.kotlin</depends>
<depends optional="false">org.jetbrains.android</depends>
+2 -5
View File
@@ -5,6 +5,7 @@
<macrodef name="replicateIdeaVersion">
<attribute name="target.file"/>
<attribute name="idea-version-pattern" default="&lt;idea-version since-build=&quot;[0-9.]+&quot; until-build=&quot;[0-9.]+&quot;/&gt;"/>
<attribute name="replace-pattern" default="&lt;!-- IDEA VERSION --&gt;"/>
<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>