forked from HansAnderson/CommandSigns
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.xml
43 lines (40 loc) · 1.57 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
CommandSigns
A Bukkit Plugin which allows commands to be bound to blocks
Zonedabone, CJxD
====================================================================== -->
<project name="CommandSigns" default="build">
<description>
A Bukkit Plugin which allows commands to be bound to blocks
</description>
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="lib" location="lib" />
<target name="init" depends="clean" description="create necessary folders">
<mkdir dir="${bin}" />
</target>
<target name="build" depends="init" description="compile the source">
<javac source="1.6" target="1.6" srcdir="${src}" destdir="${bin}" debug="on" debuglevel="lines,vars,source" includeantruntime="false" encoding="Cp1252">
<classpath>
<pathelement path="${lib}" />
<pathelement location="${lib}/Bukkit.jar" />
<pathelement location="${lib}/Vault.jar" />
</classpath>
</javac>
<antcall target="dist" />
</target>
<target name="dist" description="generate the distribution">
<jar jarfile="${bin}/CommandSigns.jar" basedir="${bin}" encoding="Cp1252">
<zipfileset dir="." includes="*.yml" />
<zipfileset dir="." includes="LICENSE.txt" />
</jar>
</target>
<target name="test" description="test">
<antcall target="build" />
</target>
<target name="clean" description="clean up">
<delete dir="${bin}" />
</target>
</project>