forked from ashbash/SimpleSignEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
57 lines (49 loc) · 1.75 KB
/
build.xml
File metadata and controls
57 lines (49 loc) · 1.75 KB
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
<project name="SignEdit" default="build" basedir=".">
<property name="src" location="src"/>
<property name="resources" location="resources"/>
<property name="lib" location="../lib"/>
<property name="target" location="target"/>
<property name="classes" location="${target}/classes"/>
<property name="artifacts" location="${target}/artifacts"/>
<property name="javadoc" location="api"/>
<property name="bukkit" value="bukkit.jar"/>
<property name="LWC" value="LWC.jar"/>
<target name="init">
<mkdir dir="${lib}"/>
<mkdir dir="${target}"/>
<mkdir dir="${classes}"/>
</target>
<target name="update" depends="init">
<get src="http://dl.bukkit.org/downloads/bukkit/get/latest-rb/bukkit.jar"
dest="${lib}/${bukkit}" usetimestamp="true"/>
<get src="http://cfapi.lukegb.com/dl/lwc/" dest="${lib}/${LWC}" usetimestamp="true"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${classes}" includeantruntime="false" debug="on">
<classpath>
<pathelement location="${lib}/${bukkit}"/>
<pathelement location="${lib}/${LWC}"/>
</classpath>
</javac>
</target>
<target name="doc">
<javadoc sourcefiles="${src}/ca/celticminstrel/signedit/SignEditAPI.java" destdir="${javadoc}">
<classpath path="${lib}/${bukkit}"/>
</javadoc>
</target>
<target name="build" depends="compile">
<mkdir dir="${artifacts}"/>
<jar jarfile="${artifacts}/SimpleSignEdit.jar" update="true">
<fileset dir="${classes}/"/>
<fileset dir="${resources}/"/>
<fileset dir="${src}">
<include name="**/SignEditAPI.java"/>
</fileset>
</jar>
</target>
<target name="dist" depends="clean,doc,build"></target>
<target name="clean">
<delete dir="${target}"/>
<delete dir="${javadoc}"/>
</target>
</project>