forked from MilkBowl/Vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
67 lines (58 loc) · 2.1 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
<?xml version="1.0" ?>
<!DOCTYPE project>
<project default="main">
<property environment="env"/>
<path id="classpath">
<fileset dir="lib" includes="**/*.jar"/>
</path>
<target name="jdoc" depends="clean, javadoc" description="Main javadoc">
<echo>Building and Archiving the Javadocs</echo>
</target>
<target name="main" depends="clean, compile, compress, javadoc" description="Main target">
<echo>Building the .jar file.</echo>
</target>
<target name="clean" description="Cleans project">
<echo>Cleaning</echo>
<delete failonerror="false">
<fileset dir="bin" includes="**/*" />
<fileset dir="javadoc" includes="**/*" />
</delete>
<delete file="Vault.jar" />
<mkdir dir="bin"/>
</target>
<target name="compile" description="Compilation target">
<echo>Compiling</echo>
<javac srcdir="." destdir="bin" debug="on" debuglevel="lines,vars,source" classpathref="classpath" includeantruntime="false" />
<copy file="plugin.yml" tofile="bin/plugin.yml" />
<replace file="bin/plugin.yml" token="b000" value="b${env.BUILD_NUMBER}" />
</target>
<target name="compress" description="Compression target">
<echo>Compressing</echo>
<jar jarfile="Vault.jar" basedir="bin" includes="net/**/*, plugin.yml, props/*">
<manifest>
<attribute name="Built-By" value="${user.name}" />
</manifest>
</jar>
<delete dir="bin" />
</target>
<target name="javadoc" description="Generate JavaDoc">
<delete dir="/var/www/javadoc/vault" includes="**/*" failonerror="false" />
<javadoc packagenames="net.milkbowl.vault.economy,net.milkbowl.vault.permission,net.milkbowl.vault.chat,net.milkbowl.vault.item"
sourcepath="src"
destdir="/var/www/javadoc/vault"
access="public"
windowtitle="Vault"
verbose="false"
author="true"
version="true">
<link href="http://docs.oracle.com/javase/7/docs/api/" />
<link href="http://jd.bukkit.org/apidocs/" />
<classpath>
<fileset dir="lib" includes="**/*.jar"/>
</classpath>
<bottom>
<![CDATA[<b>MilkBowl, 2013</b>]]>
</bottom>
</javadoc>
</target>
</project>