Updated Build to include bukkit version and date in plugin jar filename
This commit is contained in:
parent
8ab408d148
commit
d5cc078480
2 changed files with 41 additions and 0 deletions
6
build.properties
Normal file
6
build.properties
Normal file
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# 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
|
||||
bukkit-version=1.4.6
|
35
build.xml
Normal file
35
build.xml
Normal file
|
@ -0,0 +1,35 @@
|
|||
<project name="scriptcraft" default="bukkit-dist" basedir=".">
|
||||
<property file="build.properties"/>
|
||||
<description>Builds the scriptcraft.jar file - a plugin for bukkit</description>
|
||||
<property name="bukkit" location="bukkit-plugin"/>
|
||||
<property name="src" location="${bukkit}/src"/>
|
||||
<property name="build" location="${bukkit}/build"/>
|
||||
<property name="dist" location="./" />
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
<mkdir dir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="bukkit-compile" depends="init" description="compile bukkit plugin source">
|
||||
<javac srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}">
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="zip_js">
|
||||
<zip zipfile="${build}/js-plugins.zip" basedir="./js-plugins"/>
|
||||
</target>
|
||||
|
||||
<target name="bukkit-dist" depends="zip_js,bukkit-compile"
|
||||
description="generate the distribution" >
|
||||
<!-- Create the distribution directory -->
|
||||
<mkdir dir="${dist}/lib"/>
|
||||
<copy file="bukkit-plugin/plugin.yml" todir="${build}"/>
|
||||
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||||
<jar jarfile="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" basedir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" description="clean up" >
|
||||
<delete dir="${build}"/>
|
||||
</target>
|
||||
|
||||
</project>
|
Reference in a new issue