generate a new version datestamp per build and fix paths in arrows.js
This commit is contained in:
parent
cd5d8baad8
commit
03e9f1f101
3 changed files with 11 additions and 5 deletions
|
@ -16,6 +16,8 @@
|
|||
</javac>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<target name="zip_js">
|
||||
<zip zipfile="${build}/js-plugins.zip" basedir="./js-plugins"/>
|
||||
</target>
|
||||
|
@ -25,6 +27,10 @@
|
|||
<!-- Create the distribution directory -->
|
||||
<mkdir dir="${dist}/lib"/>
|
||||
<copy file="bukkit-plugin/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>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
name: ScriptCraftPlugin
|
||||
main: net.walterhiggins.scriptcraft.ScriptCraftPlugin
|
||||
version: 0.01
|
||||
version: [[version]]
|
||||
commands:
|
||||
js:
|
||||
description: Evaluate javascript.
|
||||
usage: /<command> Javascript code
|
||||
permission: ScriptCraftPlugin.js
|
||||
permission-message: You don't have <permission>
|
||||
permission: ScriptCraftPlugin.evaluate
|
||||
permission-message: You don't have <permission> permission. This permission is only available to operators.
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
*
|
||||
************************************************************************/
|
||||
var rootDir = __folder;
|
||||
load(rootDir + "signs/select.js");
|
||||
load(rootDir + "events/events.js");
|
||||
load(rootDir + "../signs/select.js");
|
||||
load(rootDir + "../events/events.js");
|
||||
var arrows = arrows || {};
|
||||
// ------------------------------------------------------------------------
|
||||
// Private implementation
|
||||
|
|
Reference in a new issue