generate a new version datestamp per build and fix paths in arrows.js

This commit is contained in:
walterhiggins 2013-01-15 21:11:18 +00:00
parent cd5d8baad8
commit 03e9f1f101
3 changed files with 11 additions and 5 deletions

View file

@ -16,6 +16,8 @@
</javac> </javac>
</target> </target>
<target name="zip_js"> <target name="zip_js">
<zip zipfile="${build}/js-plugins.zip" basedir="./js-plugins"/> <zip zipfile="${build}/js-plugins.zip" basedir="./js-plugins"/>
</target> </target>
@ -25,6 +27,10 @@
<!-- Create the distribution directory --> <!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/> <mkdir dir="${dist}/lib"/>
<copy file="bukkit-plugin/plugin.yml" todir="${build}"/> <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 --> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" basedir="${build}"/> <jar jarfile="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" basedir="${build}"/>
</target> </target>

View file

@ -1,9 +1,9 @@
name: ScriptCraftPlugin name: ScriptCraftPlugin
main: net.walterhiggins.scriptcraft.ScriptCraftPlugin main: net.walterhiggins.scriptcraft.ScriptCraftPlugin
version: 0.01 version: [[version]]
commands: commands:
js: js:
description: Evaluate javascript. description: Evaluate javascript.
usage: /<command> Javascript code usage: /<command> Javascript code
permission: ScriptCraftPlugin.js permission: ScriptCraftPlugin.evaluate
permission-message: You don't have <permission> permission-message: You don't have <permission> permission. This permission is only available to operators.

View file

@ -17,8 +17,8 @@
* *
************************************************************************/ ************************************************************************/
var rootDir = __folder; var rootDir = __folder;
load(rootDir + "signs/select.js"); load(rootDir + "../signs/select.js");
load(rootDir + "events/events.js"); load(rootDir + "../events/events.js");
var arrows = arrows || {}; var arrows = arrows || {};
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// Private implementation // Private implementation