-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
37 lines (32 loc) · 1.17 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
<project name="Bullseye" default="build" basedir=".">
<property name="pluginname" value="Bullseye"/>
<property name="spigot-api.jar" location="lib/spigot-api.jar"/>
<property name="plugins" location="server/plugins/"/>
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="build" location="build"/>
<target name="compile">
<mkdir dir="${bin}"/>
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
<classpath>
<pathelement location="${spigot-api.jar}"/>
</classpath>
</javac>
</target>
<target name="build" depends="compile">
<mkdir dir="${build}"/>
<jar jarfile="${build}/${pluginname}.jar">
<fileset dir="${bin}"/>
<fileset file="src/plugin.yml"/>
<fileset file="src/config.yml"/>
</jar>
</target>
<target name="deploy" depends="build">
<mkdir dir="${plugins}"/>
<copy file="${build}/${pluginname}.jar" todir="${plugins}"/>
</target>
<target name="clean">
<delete dir="${bin}"/>
<delete dir="${build}"/>
</target>
</project>