-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
54 lines (45 loc) · 1.59 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
<project name="BestBot" default="help" basedir=".">
<property name="build.sysclasspath" value="last"/>
<target name="help">
<echo message="Common build targets:" />
<echo message="build - Cleans and builds BestBot.jar" />
<echo message="clean - Removes all *.class files" />
</target>
<property file="build.properties"/>
<property name="buildDir" value="build" />
<path id="classpath">
<pathelement path="." />
<fileset dir="lib/">
<include name="*.jar" />
</fileset>
<pathelement location="." />
</path>
<target name="build" depends="clean,jar"/>
<target name="jar" depends="compile">
<jar
jarfile="BestBot.jar">
<fileset dir="classes"/>
<zipgroupfileset dir="lib/" includes="*.jar" />
<manifest>
<attribute name="Built-By" value="BestEver" />
<attribute name="Class-Path" value="lib/pircbot.jar lib/mysql-connector-java-5.0.8-bin.jar lib/ini4j-0.5.2.jar" />
<attribute name="Main-class" value="org.bestever.bebot.Bot" />
</manifest>
</jar>
</target>
<target name="compile">
<mkdir dir="classes"/>
<javac
srcdir="src"
destdir="classes"
classpathref="classpath"/>
<copy todir="classes">
<fileset dir="src">
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="classes"/>
<delete file="BestBot.jar"/>
</target>
</project>