-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
46 lines (44 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="dicebot">
<path id="classpath">
<fileset dir="${basedir}/lib/">
<include name="*.jar"/>
</fileset>
</path>
<target name="init-build">
<tstamp/>
<mkdir dir="build/"/>
</target>
<target name="make-build" depends="init-build">
<javac srcdir="${basedir}/src"
destdir="${basedir}/build"
target="7"
source="7">
<include name="**/*.java"/>
<classpath refid="classpath"/>
</javac>
</target>
<target name="build" depends="init-build,make-build">
<unjar dest="${basedir}/build/">
<fileset dir="${basedir}/lib/">
<include name="*.jar"/>
</fileset>
<patternset>
<include name="**/*.class"/>
</patternset>
</unjar>
<jar destfile="${basedir}/dicebot.jar" basedir="${basedir}/build">
<manifest>
<attribute name="Built-By" value="[email protected]"/>
<attribute name="Built-Date" value="${TODAY}"/>
<attribute name="Main-Class" value="org.perilouscodpiece.dicebot.Main"/>
<attribute name="Class-Path" value=". lib"/>
</manifest>
</jar>
<echo message="Build complete. Please read README.txt for execution instructions."/>
</target>
<target name="clean">
<delete dir="${basedir}/build/"/>
<delete file="${basedir}/dicebot.jar"/>
</target>
</project>