Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added ant build file.

commit dc9679c7d150fa1faa2ca3c52232651b5074eee8 1 parent 71ac696
@FrozenCow FrozenCow authored Dinnerbone committed
Showing with 38 additions and 0 deletions.
  1. +38 −0 build.xml
View
38 build.xml
@@ -0,0 +1,38 @@
+<project name="BukkitSamplePlugin" default="dist" basedir=".">
+ <property name="pluginname" value="BukkitSamplePlugin"/>
+ <property name="bukkit.jar" location="../Bukkit/dist/Bukkit.jar"/>
+ <property name="plugins" location="../../plugins/"/>
+
+ <property name="src" location="src"/>
+ <property name="bin" location="bin"/>
+ <property name="dist" location="dist"/>
+
+ <target name="init">
+ <mkdir dir="${bin}"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="${src}/main/java" destdir="${bin}" includeantruntime="false">
+ <classpath>
+ <pathelement location="${bukkit.jar}"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="dist" depends="compile">
+ <mkdir dir="${dist}"/>
+ <jar jarfile="${dist}/${pluginname}.jar">
+ <fileset dir="${bin}"/>
+ <fileset file="${src}/main/resources/plugin.yml"/>
+ </jar>
+ </target>
+
+ <target name="deploy" depends="dist">
+ <copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
+ </target>
+
+ <target name="clean">
+ <delete dir="${bin}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
Please sign in to comment.
Something went wrong with that request. Please try again.