Citizens2/build.xml
2012-01-19 06:09:39 -06:00

41 lines
1.3 KiB
XML

<project name="Citizens" default="dist" basedir=".">
<description>
Citizens build file
</description>
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="build" location="build" />
<property name="lib" location="lib" />
<target name="init">
<!-- Create neccesary folders -->
<mkdir dir="${build}" />
</target>
<!-- Compile the code -->
<target name="dist" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${build}" debug="on" debuglevel="lines,vars,source" includeantruntime="false" encoding="Cp1252">
<classpath>
<pathelement path="${lib}" />
<pathelement location="${lib}/bukkit-1.1-R1-SNAPSHOT.jar" />
<pathelement location="${lib}/craftbukkit-1.1-R1-SNAPSHOT.jar" />
<pathelement location="${lib}/CitizensAPI.jar" />
<fileset dir="lib">
<include name="CitizensAPI.jar" />
</fileset>
</classpath>
</javac>
<antcall target="distcore" />
</target>
<!-- Generate the jars -->
<target name="distcore" description="generate the distribution">
<jar jarfile="Citizens.jar" basedir="${build}" encoding="Cp1252">
<zipfileset dir="." includes="*.yml" />
</jar>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} directory trees -->
<delete dir="${build}" />
</target>
</project>