This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/build.xml

41 lines
1.4 KiB
XML
Raw Normal View History

<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>
<target name="copy-js-cb-live">
<copy todir="${craftbukkit}/js-plugins">
<fileset dir="js-plugins"/>
</copy>
</target>
</project>