Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (32 sloc) 1.064 kb
241aef6 @Dinnerbone Initial commit
Dinnerbone authored
1 <project name="BukkitSamplePlugin" default="dist" basedir=".">
2 <property name="pluginname" value="BukkitSamplePlugin"/>
3 <property name="bukkit.jar" location="../Bukkit/dist/Bukkit.jar"/>
4 <property name="plugins" location="../../plugins/"/>
5
6 <property name="src" location="src"/>
7 <property name="bin" location="bin"/>
8 <property name="dist" location="dist"/>
9
10 <target name="init">
11 <mkdir dir="${bin}"/>
12 </target>
13
14 <target name="compile" depends="init">
15 <javac srcdir="${src}/main/java" destdir="${bin}" includeantruntime="false">
16 <classpath>
17 <pathelement location="${bukkit.jar}"/>
18 </classpath>
19 </javac>
20 </target>
21
22 <target name="dist" depends="compile">
23 <mkdir dir="${dist}"/>
24 <jar jarfile="${dist}/${pluginname}.jar">
25 <fileset dir="${bin}"/>
26 <fileset file="${src}/main/resources/plugin.yml"/>
27 </jar>
28 </target>
29
30 <target name="deploy" depends="dist">
31 <copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
32 </target>
33
34 <target name="clean">
35 <delete dir="${bin}"/>
36 <delete dir="${dist}"/>
37 </target>
38 </project>
Something went wrong with that request. Please try again.