-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
34 lines (30 loc) · 1.12 KB
/
build.xml
File metadata and controls
34 lines (30 loc) · 1.12 KB
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
<?xml version="1.0" ?>
<!-- Configuration of the Ant build system to generate a Jar file -->
<project name="FurnitureMaker" default="dist" basedir=".">
<property name="pluginname" value="FurnitureMaker"/>
<property name="bukkit.jar" location="../Bukkit/dist/spigot.jar"/>
<property name="plugins" location="../Bukkit/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}" destdir="${bin}" includeantruntime="false">
<classpath>
<pathelement location="${bukkit.jar}"/>
<pathelement location="${plugins}/FurnitureLib.jar"/>
<pathelement location="${plugins}/ProtocolLib.jar"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${pluginname}.jar">
<fileset dir="${bin}"/>
<fileset file="${src}/*.yml"/>
</jar>
<copy file="${dist}/${pluginname}.jar" tofile="${plugins}/${pluginname}.jar"/>
</target>
</project>