summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-17 03:33:31 +0100
committerSven Gothel <[email protected]>2013-01-17 03:33:31 +0100
commit4529bf562834b6929faa41813988934e7b8854f9 (patch)
treee8faad5e1835fbf506c2dd53645c891a3fce6073 /build.xml
Initial Commit
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml51
1 files changed, 51 insertions, 0 deletions
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..f21afdf
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,51 @@
+<?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"
+ 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>