-
Notifications
You must be signed in to change notification settings - Fork 2
/
Builder.xml
81 lines (74 loc) · 2.81 KB
/
Builder.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8"?>
<project name="Zones" default="jar" basedir=".">
<description>
This script will build the plugin.
</description>
<property name="src" location="src" />
<property name="build" location="build" />
<property name="build.classes" location="${build}/classes" />
<path id="classpath">
<fileset dir="libs">
<include name="craftbukkit.jar" />
<include name="worldedit-5.6.3.jar" />
<include name="Vault-1.4.1.jar" />
<include name="WorldGuard.jar" />
<include name="VirtualPlayers.jar" />
<include name="prtree.jar" />
<!-- <include name="PermissionsEx.jar" /> -->
<include name="EasyBind.jar" />
<!-- <include name="trove-3.0.0.jar" /> -->
</fileset>
</path>
<target name="verifyRequirements" description="Checks if the necessary requirements for building Handler are fulfilled">
<available classname="javax.script.ScriptContext" property="JDK6.present" />
<fail unless="JDK6.present" message="JDK 6 or greater is required." />
</target>
<target name="init" depends="clean, verifyRequirements" description="Create the output directories.">
<mkdir dir="${build}" />
<mkdir dir="${build.classes}" />
</target>
<target name="compile" depends="init" description="Compile the source.">
<javac destdir="${build.classes}" debug="on" nowarn="off" deprecation="on" >
<compilerarg value="-Xlint" />
<src path="${src}" />
<classpath refid="classpath" />
</javac>
</target>
<target name="jar" depends="compile" description="Create the jar file">
<jar destfile="../Zones.jar" manifest="libs/MANIFEST.MF" >
<fileset dir="${build.classes}" />
<zipfileset dir="${src}/com/zones/config/" prefix="com/zones/config/" >
<include name="*.properties" />
</zipfileset >
<zipfileset dir="${src}/com/zones/config/db/" prefix="com/zones/config/db/" >
<include name="*.sql" />
</zipfileset >
<zipfileset dir="" prefix="" >
<include name="plugin.yml" />
</zipfileset >
<zipfileset dir="${src}" prefix="src" >
<include name="**" />
</zipfileset>
<!-- <zipfileset dir="" prefix="" >
<include name="db.sql" />
</zipfileset> -->
<zipfileset src="libs/prtree.jar" prefix="" >
<include name="**" />
<exclude name="META-INF/*" />
</zipfileset>
</jar>
<zip destfile="../Zones-3.0b3.zip" >
<fileset dir=".." includes="Zones.jar" />
<zipfileset dir="${src}/com/zones/config/" >
<include name="*.properties" />
</zipfileset >
<zipfileset dir="${src}/com/zones/config/db/" >
<include name="*.sql" />
</zipfileset >
</zip>
<copy file="../Zones.jar" todir="C:\Users\Joseph Verburg\Desktop\test\plugins" />
</target>
<target name="clean" description="Remove the output directories">
<delete dir="${build}" />
</target>
</project>