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 name="compile" depends="init" description="compile bukkit plugin source">
|
||||
<javac srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}">
|
||||
</javac>
|
||||
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}" />
|
||||
</target>
|
||||
|
||||
<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">
|
||||
<classpath>
|
||||
<pathelement path="src/docs/java"/>
|
||||
|
@ -32,11 +31,13 @@
|
|||
|
||||
<target name="package" depends="gendocs,zip_js,compile"
|
||||
description="generate the distribution" >
|
||||
<!-- ensure plugin.yml is always copied -->
|
||||
<delete file="${build}/plugin.yml" />
|
||||
<copy file="src/main/resources/plugin.yml" todir="${build}"/>
|
||||
<replace file="${build}/plugin.yml" value="${bukkit-version}-${DSTAMP}">
|
||||
<replacetoken>[[version]]</replacetoken>
|
||||
</replace>
|
||||
|
||||
|
||||
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||||
<jar jarfile="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" basedir="${build}"/>
|
||||
</target>
|
||||
|
|
Reference in a new issue