ensure Canary.inf has latest version number.

This commit is contained in:
walterhiggins 2014-11-14 19:57:48 +00:00
parent f211966884
commit 0bc45c1b49
2 changed files with 6 additions and 2 deletions

View file

@ -209,12 +209,16 @@ Walter Higgins
<target name="package" depends="gendocs,zip_js,compile-plugins" description="generate the distribution" > <target name="package" depends="gendocs,zip_js,compile-plugins" description="generate the distribution" >
<!-- ensure plugin.yml is always copied --> <!-- ensure plugin.yml is always copied -->
<delete file="${build}/plugin.yml" /> <delete file="${build}/plugin.yml" />
<delete file="${build}/Canary.inf" />
<copy todir="${build}"> <copy todir="${build}">
<fileset dir="src/main/resources"/> <fileset dir="src/main/resources"/>
</copy> </copy>
<replace file="${build}/plugin.yml" value="${scriptcraft-version}-${DSTAMP}"> <replace file="${build}/plugin.yml" value="${scriptcraft-version}-${DSTAMP}">
<replacetoken>[[version]]</replacetoken> <replacetoken>[[version]]</replacetoken>
</replace> </replace>
<replace file="${build}/Canary.inf" value="${scriptcraft-version}-${DSTAMP}">
<replacetoken>[[version]]</replacetoken>
</replace>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<mkdir dir="${dist}/${DSTAMP}" /> <mkdir dir="${dist}/${DSTAMP}" />

View file

@ -1,4 +1,4 @@
main-class = org.scriptcraftjs.canarymod.ScriptCraftPlugin main-class = org.scriptcraftjs.canarymod.ScriptCraftPlugin
isLibrary = false isLibrary = false
author = walter higgins author = Walter Higgins
version = 2.1.10 version = [[version]]