-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (45 loc) · 1.74 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
<project name="WhiskeyLimits" default="main" basedir=".">
<!-- env variables -->
<property name="target" location="target/"/>
<property name="Ver" value="3-DEV"/>
<property name="Authors" value="keiki83"/>
<path id="classpath"><fileset dir="lib" includes="**/*.jar"/></path>
<target name="main" depends="prep, class, compile, jar" description="Main target">
<echo>Building the .jar file.</echo>
</target>
<!-- Prep -->
<target name="prep" description="Cleans project">
<echo>Cleaning</echo>
<delete failonerror="false"><fileset dir="build" includes="**/*"/></delete>
<delete file="dist/WhiskeyLimits.jar" />
<tstamp/>
<mkdir dir="dist"/>
<mkdir dir="build"/>
<mkdir dir="lib"/>
</target>
<!-- Download libraries -->
<target name="class">
<get src="http://dl.bukkit.org/latest-beta/bukkit.jar" dest="lib/Bukkit.jar"/>
<get src="http://dev.bukkit.org/media/files/592/826/Vault.jar" dest="lib/Vault.jar"/>
</target>
<!-- compile -->
<target name="compile">
<echo>Compiling</echo>
<javac target="1.6" source="1.6" srcdir="src/us/" destdir="build" debug="true" debuglevel="lines,vars,source" classpathref="classpath" includeantruntime="false">
<compilerarg value="-Xbootclasspath/p:${toString:classpath}"/>
</javac>
<copy file="src/plugin.yml" tofile="build/plugin.yml"/>
</target>
<!-- jar -->
<target name="jar">
<jar jarfile="dist/WhiskeyLimits.jar" basedir="build">
<manifest>
<attribute name="WhiskeyLimits" value="Dev Team: ${Authors}"/>
<attribute name="Version" value="${Ver}"/>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
</jar>
<delete dir="build"/>
<delete dir="lib"/>
</target>
</project>