This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
72 lines (63 loc) · 3.12 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
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
<project name="EnderCore" default="distribution" basedir=".">
<!-- Basic definitions -->
<property name="projectName" value="EnderCore"/>
<!-- Basic path elements -->
<property name="src" location="."/>
<property name="resources" location="resources"/>
<property name="lib" location="./lib"/>
<property name="target" location="./target"/>
<property name="classes" location="${target}/classes"/>
<property name="build" location="${target}/"/>
<!-- The game and server version, which the librarys download for -->
<property name="libsVer" value="147"/>
<!-- Librarys definition -->
<property name="bukkit" value="Bukkit.jar"/>
<property name="craftBukkit" value="CraftBukkit.jar"/>
<property name="Vault" value="Vault.jar"/>
<property name="PEX" value="PermissionsEx.jar"/>
<property name="GM" value="EssentialsGroupManager.jar"/>
<property name="ESS" value="Essentials.jar"/>
<property name="ICON6" value="iConomy_V6.jar"/>
<property name="ICON8" value="iConomy_V8.jar"/>
<property name="BOSE" value="BOSEconomy.jar"/>
<target name="init">
<echo message="Started building ${projectName} Version 0.1.1.52"/>
<mkdir dir="${lib}"/>
<mkdir dir="${target}"/>
<mkdir dir="${classes}"/>
</target>
<target name="get_libs" depends="init">
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/Bukkit.jar" dest="${lib}/${bukkit}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/CraftBukkit.jar" dest="${lib}/${craftBukkit}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/Vault.jar" dest="${lib}/${Vault}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/PermissionsEx.jar" dest="${lib}/${PEX}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/EssentialsGroupManager.jar" dest="${lib}/${GM}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/Essentials.jar" dest="${lib}/${ESS}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/iConomy_V6.jar" dest="${lib}/${ICON6}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/iConomy_V8.jar" dest="${lib}/${ICON8}" usetimestamp="true"/>
<get src="http://cdn.zolli.tk/minecraft/${libsVer}/BOSEconomy.jar" dest="${lib}/${BOSE}" usetimestamp="true"/>
</target>
<target name="compile" depends="get_libs">
<javac srcdir="${src}" destdir="${classes}" target="1.6" source="1.6" includeantruntime="false" debug="on">
<classpath>
<pathelement location="${lib}/${bukkit}"/>
<pathelement location="${lib}/${craftBukkit}"/>
<pathelement location="${lib}/${Vault}"/>
<pathelement location="${lib}/${PEX}"/>
<pathelement location="${lib}/${GM}"/>
<pathelement location="${lib}/${ESS}"/>
<pathelement location="${lib}/${ICON6}"/>
<pathelement location="${lib}/${ICON8}"/>
<pathelement location="${lib}/${BOSE}"/>
</classpath>
</javac>
</target>
<target name="distribution" depends="compile">
<mkdir dir="${build}"/>
<jar jarfile="${build}/EnderCore.jar" update="true">
<fileset dir="${classes}/"/>
<fileset dir="${resources}/"/>
</jar>
<delete dir="${target}/classes"/>
</target>
</project>