forked from nodren/minecraft-bukkit-vanish
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
60 lines (52 loc) · 2.29 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
<?xml version="1.0" ?>
<project default="main">
<property environment="env"/>
<path id="classpath">
<fileset dir="lib" includes="**/*.jar"/>
</path>
<target name="jar" depends="main" />
<target name="main" depends="clean, compile, compress" 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="**/*" />
</delete>
<delete file="Administrate.jar" />
<mkdir dir="bin"/>
<echo>Retreiving Libraries</echo>
<mkdir dir="lib" />
<echo>- Bukkit</echo>
<get src="http://ci.milkbowl.net/job/Bukkit/lastSuccessfulBuild/artifact/target/bukkit-0.0.1-SNAPSHOT.jar"
dest="lib/bukkit.jar" verbose="false" usetimestamp="true" />
<echo>- CraftBukkit</echo>
<get src="http://ci.milkbowl.net/job/CraftBukkit/lastSuccessfulBuild/artifact/target/craftbukkit-0.0.1-SNAPSHOT.jar"
dest="lib/craftbukkit.jar" verbose="false" usetimestamp="true" />
<echo>- Vault</echo>
<get src="http://ci.milkbowl.net/job/Vault/lastSuccessfulBuild/artifact/Vault.jar"
dest="lib/Vault.jar" verbose="false" usetimestamp="true"/>
<echo>- Spout</echo>
<get src="http://ci.craftfire.com/view/SpoutDev/job/Spout/lastSuccessfulBuild/artifact/target/spout-dev-SNAPSHOT.jar"
dest="lib/Spout.jar" verbose="false" usetimestamp="true"/>
</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="src/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="Administrate.jar" basedir="bin" includes="net/**/*, plugin.yml, props/*">
<manifest>
<attribute name="Built-By" value="${user.name}" />
</manifest>
</jar>
<zip destfile="Administrate.zip">
<fileset dir="." includes="Administrate.jar"/>
<fileset dir="lib" includes="Vault.jar"/>
</zip>
<delete dir="bin" />
</target>
</project>