blob: 6c5c038a6244cbdaf0fdfe7b1ac0612c988b398c (
plain)
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
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="JABot" default="all">
<property name="project.root" value="." />
<property name="rootrel.build" value="build" />
<property name="build" location="${project.root}/${rootrel.build}" />
<property name="lib" location="${project.root}/lib" />
<target name="init">
<property name="pircbot.jar" value="pircbot-1.5.0.jar" />
<property name="jabot.jar" value="${build}/jabot.jar" />
<property name="classes" value="${build}/classes" />
<property name="src" value="${project.root}/src" />
</target>
<target name="all" depends="init">
<mkdir dir="${classes}" />
<path id="jabot.classpath">
<pathelement location="${lib}/${pircbot.jar}" />
</path>
<javac destdir="${classes}"
includeantruntime="false"
debug="true" debuglevel="source,lines"
encoding="UTF-8">
<src path="${src}" />
<classpath refid="jabot.classpath" />
</javac>
<jar destfile="${jabot.jar}">
<fileset dir="${classes}">
<include name="**" />
</fileset>
<archives>
<zips>
<fileset dir="${lib}" includes="${pircbot.jar}" />
</zips>
</archives>
<fileset dir="${src}">
<include name="**/*.cfg" />
<include name="**/*.xml" />
<include name="**/*.txt" />
</fileset>
</jar>
</target>
<target name="clean" depends="init">
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${build}" />
</delete>
</target>
</project>
|