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