-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
52 lines (44 loc) · 1.62 KB
/
build.xml
File metadata and controls
52 lines (44 loc) · 1.62 KB
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
<!--Ant build script for SimonClient -->
<!-- $Id: build.xml,v 1.10 2008/08/08 20:00:02 jklett Exp $ -->
<project name="plusplusbot" default="all" basedir=".">
<property name="build" value="classes" />
<property name="etc" value="etc"/>
<property name="temp" value="temp"/>
<property name="lib" value="lib"/>
<property name="src" value="src"/>
<property name="jarfile" value="plusplusbot.jar"/>
<property name="log4jprops" value="log4j.properties" />
<property name="metainf" value="**/META-INF/" />
<path id="compilerPath">
<pathelement path="${lib}/pircbot.jar:${lib}/mogile4j.jar:${lib}/log4j.jar"/>
</path>
<target name="compile">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" debug="on">
<classpath refid="compilerPath"/>
</javac>
</target>
<target name="build-jar" depends="compile">
<mkdir dir="${temp}"/>
<copy todir="${temp}">
<fileset dir="${build}"/>
</copy>
<!-- expand library jars -->
<unjar dest="${temp}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</unjar>
<!-- jar it up -->
<jar destfile="${jarfile}" basedir="${temp}" manifest="${etc}/PlusPlusBotMainClass" />
</target>
<target name="all" depends="clean,compile,build-jar"/>
<target name="clean">
<delete dir="${build}"/>
<delete file="${jarfile}"/>
<delete dir="${temp}"/>
</target>
</project>