-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
67 lines (61 loc) · 2.3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<project name="WebSocket XMPP Gateway (WXG)" basedir="." default="pack">
<description>
This build file compiles and packs the WebSocket XMPP Gateway (WXG) developed at the
Chair of Computer Science 5 (Information Systems) at RWTH Aachen University, Germany.
</description>
<property name="src" location="java" />
<property name="lib" location="lib" />
<property name="conf" location="conf" />
<property name="doc" location="javadoc" />
<property name="tmp" location="temp" />
<property name="tmp.classes" location="${tmp}/classes" />
<path id="classpath">
<fileset dir="${lib}" >
<include name="*.jar"/>
</fileset>
<pathelement location="${conf}"/>
</path>
<target name="init" description="creates the temp folder">
<tstamp/>
<mkdir dir="${tmp}" />
<mkdir dir="${tmp.classes}" />
</target>
<target name="compile" depends="init" description="compiles the source code">
<javac destdir="${tmp.classes}" debug="on">
<src path="${src}" />
<classpath refid="classpath" />
</javac>
</target>
<target name="pack" depends="compile" description="creates an executable jar file">
<manifestclasspath property="jar.classpath" jarfile="wxg.jar">
<classpath refid="classpath"/>
</manifestclasspath>
<jar jarfile="wxg.jar">
<manifest>
<attribute name="Main-Class" value="de.rwth_aachen.dbis.wsxmppgateway.WebSocketXmppGateway" />
<attribute name="Class-Path" value="${jar.classpath}" />
</manifest>
<fileset dir="${tmp.classes}">
<include name="de/rwth_aachen/dbis/wsxmppgateway/**/*.class" />
</fileset>
</jar>
</target>
<target name="doc" depends="init" description="generates javadoc API documentation">
<mkdir dir="${doc}"/>
<javadoc destdir="${doc}"
author="true"
version="true"
use="true"
link="http://download.oracle.com/javase/6/docs/api/"
classpathref="classpath"
windowtitle="WebSocket XMPP Gateway (WXG)">
<packageset dir="${src}">
<include name="de/rwth_aachen/dbis/wsxmppgateway/**" />
</packageset>
<bottom>
<![CDATA[<p class="bottom">Copyright © 2011 Chair of Computer Science 5 (Information Systems) at RWTH Aachen University, Germany</p>]]>
</bottom>
</javadoc>
</target>
</project>