Make version writing a separate build step
This commit is contained in:
Generated
+1
-1
@@ -8,7 +8,7 @@
|
||||
</options>
|
||||
</properties>
|
||||
<properties id="ant-preprocessing">
|
||||
<options enabled="true">
|
||||
<options>
|
||||
<file>file://$PROJECT_DIR$/plugin_pre_build.xml</file>
|
||||
<target>writeVersionToPluginXml</target>
|
||||
</options>
|
||||
|
||||
Generated
+3
@@ -3,6 +3,9 @@
|
||||
<component name="EntryPointsManager">
|
||||
<entry_points version="2.0" />
|
||||
</component>
|
||||
<component name="ProjectResources">
|
||||
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
|
||||
+6
-13
@@ -1,24 +1,17 @@
|
||||
<project name="Kotlin Plugin Pre-build Step">
|
||||
<project name="Write Plugin Version to plugin.xml">
|
||||
|
||||
<property name="artifact.output.path" value="${basedir}/out/artifacts/KotlinPlugin"/>
|
||||
<property name="build.number" value="snapshot"/>
|
||||
|
||||
<!-- Sets ${running.locally} to true if the ${build.number} is "snapshot" -->
|
||||
<target name="checkLocal">
|
||||
<condition property="running.locally">
|
||||
<equals arg1="${build.number}" arg2="snapshot"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="writeVersionToPluginXml" depends="checkLocal" unless="running.locally">
|
||||
<copy file="idea/src/META-INF/plugin.xml" tofile="idea/src/META-INF/plugin.xml-version">
|
||||
<target name="writeVersionToPluginXml">
|
||||
<property name="plugin.xml" value="idea/src/META-INF/plugin.xml"/>
|
||||
<copy file="${plugin.xml}" tofile="${plugin.xml}-version">
|
||||
<filterchain>
|
||||
<replacetokens>
|
||||
<token key="snapshot" value="${build.number}"/>
|
||||
</replacetokens>
|
||||
</filterchain>
|
||||
</copy>
|
||||
<copy file="idea/src/META-INF/plugin.xml-version" tofile="idea/src/META-INF/plugin.xml" overwrite="true"/>
|
||||
<delete file="idea/src/META-INF/plugin.xml-version" quiet="true"/>
|
||||
<copy file="${plugin.xml}-version" tofile="${plugin.xml}" overwrite="true"/>
|
||||
<delete file="${plugin.xml}-version" quiet="true"/>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user