-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
41 lines (33 loc) · 1.39 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="quickbelt">
<property name="bukkit-location" value="bukkit.jar"/>
<property name="output-jar" value="${ant.project.name}.jar"/>
<property name="debuglevel" value="source,lines"/>
<path id="classpath">
<pathelement location="bin"/>
<pathelement location="${bukkit-location}"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy file="src/plugin.yml" todir="bin" />
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin">
<src path="src"/>
<src path="lib/common/src"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="jar">
<jar destfile="${output-jar}" basedir="bin" />
</target>
<target name="dist" depends="clean,build,jar">
<fail unless="version" message="You need to specify a version number"/>
<property name="tarfile" value="${ant.project.name}_${version}.tar.gz"/>
<tar destfile="${tarfile}" basedir="." includes="${output-jar} ${ant.project.name}/*" compression="gzip" />
</target>
</project>