This commit is contained in:
walterhiggins 2013-01-08 02:31:24 +00:00
parent a4ebb4788f
commit a250a6d4a7
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#
# If building the plugin from source you need to first install bukkit
# Change this property to suit your environment
#
bukkit-lib=/home/walter/bukkit/target/original-bukkit-1.4.6-R0.4-SNAPSHOT.jar

34
bukkit-plugin/build.xml Normal file
View file

@ -0,0 +1,34 @@
<project name="scriptcraft-bukkit-plugin" default="dist" basedir=".">
<property file="build.properties"/>
<description>Builds the scriptcraft.jar file - a plugin for bukkit</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="./" />
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile plugin source">
<javac srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}">
</javac>
</target>
<target name="zip_js" depends="compile">
<zip zipfile="${build}/js-plugins.zip" basedir="../js-plugins"/>
</target>
<target name="dist" depends="zip_js,compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<copy file="plugin.yml" todir="${build}"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/scriptcraft-${DSTAMP}.jar" basedir="${build}"/>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
</target>
</project>