Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 831 Bytes
<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>