Files
kotlin-fork/write_version_to_plugin_xml.xml
T
Andrey Breslav 5a107f58ec Cleanup added
2012-01-30 18:21:22 +04:00

23 lines
831 B
XML

<project name="Write Plugin Version to plugin.xml">
<property name="build.number" value="snapshot"/>
<property name="plugin.xml" value="idea/src/META-INF/plugin.xml"/>
<property name="plugin.xml.bk" value="${plugin.xml}.bk"/>
<target name="writeVersionToPluginXml">
<copy file="${plugin.xml}" tofile="${plugin.xml.bk}"/>
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true">
<filterchain>
<replacetokens>
<token key="snapshot" value="${build.number}"/>
</replacetokens>
</filterchain>
</copy>
</target>
<target name="cleanup">
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true"/>
<delete file="${plugin.xml.bk}" quiet="true"/>
</target>
</project>