-
Notifications
You must be signed in to change notification settings - Fork 84
/
build.xml
38 lines (32 loc) · 1.04 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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>