Check that plugin.xml has correct pattern for version substitution.
This commit is contained in:
+8
-5
@@ -42,18 +42,21 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="writeVersionToPluginXml">
|
<target name="writeVersionToPluginXml">
|
||||||
<copy file="${plugin.xml}" tofile="${plugin.xml.bk}"/>
|
<!-- Check that version has correct pattern for substitution -->
|
||||||
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true">
|
<copy todir="">
|
||||||
|
<fileset file="${plugin.xml}">
|
||||||
|
<contains text="<version>@snapshot@</version>"/>
|
||||||
|
</fileset>
|
||||||
<filterchain>
|
<filterchain>
|
||||||
<replacetokens>
|
<replacetokens>
|
||||||
<token key="snapshot" value="${build.number}"/>
|
<token key="snapshot" value="${build.number}"/>
|
||||||
</replacetokens>
|
</replacetokens>
|
||||||
</filterchain>
|
</filterchain>
|
||||||
|
<mergemapper to="${plugin.xml.bk}"/>
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="cleanupPluginXml">
|
|
||||||
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true"/>
|
<copy file="${plugin.xml.bk}" tofile="${plugin.xml}" overwrite="true"/>
|
||||||
|
|
||||||
<delete file="${plugin.xml.bk}" quiet="true"/>
|
<delete file="${plugin.xml.bk}" quiet="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
@@ -82,7 +85,7 @@
|
|||||||
-->
|
-->
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="post_build" depends="cleanupPluginXml, zipArtifact, verifyPlugin"/>
|
<target name="post_build" depends="zipArtifact, verifyPlugin"/>
|
||||||
|
|
||||||
<target name="none">
|
<target name="none">
|
||||||
<fail message="Either specify pre_build or post_build"/>
|
<fail message="Either specify pre_build or post_build"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user