-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (42 loc) · 1.77 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
<?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="CombatEventsLoot.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>- CombatEventsCore</echo>
<get src="http://ci.milkbowl.net/job/CombatEventsCore/lastSuccessfulBuild/artifact/CombatEventsCore.jar"
dest="lib/CombatEventsCore.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" />
<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="CombatEventsLoot.jar" basedir="bin" includes="net/**/*, plugin.yml, props/*">
<manifest>
<attribute name="Built-By" value="${user.name}" />
</manifest>
</jar>
<delete dir="bin" />
</target>
</project>