fix for issue #61 - plugin.yml was not updated
This commit is contained in:
parent
8ce1de05ea
commit
4685d135ef
1 changed files with 5 additions and 4 deletions
|
@ -11,12 +11,11 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="init" description="compile bukkit plugin source">
|
<target name="compile" depends="init" description="compile bukkit plugin source">
|
||||||
<javac srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}">
|
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}" />
|
||||||
</javac>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="gendocs" description="Generate API documentation">
|
<target name="gendocs" description="Generate API documentation">
|
||||||
<javac srcdir="src/docs/java"/>
|
<javac includeantruntime="false" srcdir="src/docs/java"/>
|
||||||
<java classname="jscript" failonerror="true" fork="true" output="docs/api.md">
|
<java classname="jscript" failonerror="true" fork="true" output="docs/api.md">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement path="src/docs/java"/>
|
<pathelement path="src/docs/java"/>
|
||||||
|
@ -32,6 +31,8 @@
|
||||||
|
|
||||||
<target name="package" depends="gendocs,zip_js,compile"
|
<target name="package" depends="gendocs,zip_js,compile"
|
||||||
description="generate the distribution" >
|
description="generate the distribution" >
|
||||||
|
<!-- ensure plugin.yml is always copied -->
|
||||||
|
<delete file="${build}/plugin.yml" />
|
||||||
<copy file="src/main/resources/plugin.yml" todir="${build}"/>
|
<copy file="src/main/resources/plugin.yml" todir="${build}"/>
|
||||||
<replace file="${build}/plugin.yml" value="${bukkit-version}-${DSTAMP}">
|
<replace file="${build}/plugin.yml" value="${bukkit-version}-${DSTAMP}">
|
||||||
<replacetoken>[[version]]</replacetoken>
|
<replacetoken>[[version]]</replacetoken>
|
||||||
|
|
Reference in a new issue