Cleanup added

This commit is contained in:
Andrey Breslav
2012-01-30 18:21:13 +04:00
parent 92ef6aed77
commit 5a107f58ec
+9 -4
View File
@@ -1,17 +1,22 @@
<project name="Write Plugin Version to plugin.xml"> <project name="Write Plugin Version to plugin.xml">
<property name="build.number" value="snapshot"/> <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"> <target name="writeVersionToPluginXml">
<property name="plugin.xml" value="idea/src/META-INF/plugin.xml"/> <copy file="${plugin.xml}" tofile="${plugin.xml.bk}"/>
<copy file="${plugin.xml}" tofile="${plugin.xml}-version"> <copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true">
<filterchain> <filterchain>
<replacetokens> <replacetokens>
<token key="snapshot" value="${build.number}"/> <token key="snapshot" value="${build.number}"/>
</replacetokens> </replacetokens>
</filterchain> </filterchain>
</copy> </copy>
<copy file="${plugin.xml}-version" tofile="${plugin.xml}" overwrite="true"/> </target>
<delete file="${plugin.xml}-version" quiet="true"/>
<target name="cleanup">
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true"/>
<delete file="${plugin.xml.bk}" quiet="true"/>
</target> </target>
</project> </project>