2011-01-03 01:56:17 +01:00
|
|
|
<project name="Bukkit" default="dist" basedir=".">
|
|
|
|
<property name="minecraft" location="../../"/>
|
|
|
|
|
|
|
|
<property name="src" location="src"/>
|
|
|
|
<property name="bin" location="bin"/>
|
|
|
|
<property name="dist" location="dist"/>
|
|
|
|
<property name="lib" location="lib"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<mkdir dir="${bin}"/>
|
|
|
|
<mkdir dir="${lib}"/>
|
|
|
|
<get src="http://repo2.maven.org/maven2/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar" dest="${lib}/snakeyaml-1.7.jar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="${lib}">
|
|
|
|
<include name="snakeyaml-1.7.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="dist" depends="compile">
|
|
|
|
<mkdir dir="${dist}"/>
|
|
|
|
<jar jarfile="${dist}/Bukkit.jar" basedir="${bin}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="deploy" depends="dist">
|
|
|
|
<copy file="${dist}/Bukkit.jar" todir="${minecraft}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${bin}"/>
|
2011-01-03 02:43:02 +01:00
|
|
|
<delete dir="${lib}"/>
|
2011-01-03 01:56:17 +01:00
|
|
|
<delete dir="${dist}"/>
|
|
|
|
</target>
|
|
|
|
</project>
|