Citizens2/build.xml

45 lines
1.6 KiB
XML
Raw Normal View History

2012-01-16 22:18:47 +01:00
<project name="Citizens" default="dist" basedir=".">
<description>
Build file used for testing purposes
2012-01-19 13:09:39 +01:00
</description>
2012-01-16 22:18:47 +01:00
<!-- 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">
2012-01-19 13:09:39 +01:00
<javac srcdir="${src}" destdir="${build}" debug="on" debuglevel="lines,vars,source" includeantruntime="false" encoding="Cp1252">
2012-01-16 22:18:47 +01:00
<classpath>
<pathelement path="${lib}" />
<pathelement location="${lib}/bukkit-1.1-R5-SNAPSHOT.jar" />
<pathelement location="${lib}/craftbukkit-1.1-R5-SNAPSHOT.jar" />
2012-01-16 22:18:47 +01:00
<pathelement location="${lib}/CitizensAPI.jar" />
<pathelement location="${lib}/hamcrest.jar" />
2012-02-18 18:25:45 +01:00
<pathelement location="${lib}/junit-dep-4.10.jar" />
<pathelement location="${lib}/hamcrest-library-1.2.1.jar" />
<pathelement location="${lib}/hamcrest-core-1.2.1.jar" />
2012-01-16 22:18:47 +01:00
<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>