-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
77 lines (72 loc) · 3.29 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
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="build-ALL" name="BroadChat">
<target name="changelog">
<exec dir="${basedir}" executable="${basedir}/generateChangelog.sh">
<arg value="changelog.txt" />
</exec>
</target>
<target name="build-TUI" depends="changelog">
<mkdir dir="/tmp/BroadChat" />
<javac srcdir="${basedir}/src" includes="de/starletp9/BroadChat/TUI.java" destdir="/tmp/BroadChat" optimize="true" debug="false" classpath="${basedir}/../libs/jdom/build/jdom.jar" />
<jar destfile="${basedir}/TUI.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="de.starletp9.BroadChat.TUI" />
<attribute name="Class-Path" value="." />
</manifest>
<zipfileset src="${basedir}/../libs/jdom/build/jdom.jar" />
<fileset dir="/tmp/BroadChat" />
<fileset dir="${basedir}">
<filename name="*.txt"/>
</fileset>
</jar>
<delete dir="/tmp/BroadChat" />
</target>
<target name="build-SimpleGUI" depends="changelog">
<mkdir dir="/tmp/BroadChat" />
<javac srcdir="${basedir}/src" includes="de/starletp9/BroadChat/StartSimpleGUIWithDirectBackend.java" destdir="/tmp/BroadChat" optimize="true" debug="false" classpath="${basedir}/../libs/jdom/build/jdom.jar" />
<jar destfile="${basedir}/SimpleGUI.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="de.starletp9.BroadChat.StartSimpleGUIWithDirectBackend" />
<attribute name="Class-Path" value="." />
</manifest>
<zipfileset src="${basedir}/../libs/jdom/build/jdom.jar" />
<fileset dir="/tmp/BroadChat" />
<fileset dir="${basedir}">
<filename name="*.txt"/>
</fileset>
</jar>
<delete dir="/tmp/BroadChat" />
</target>
<target name="build-TCP-Server" depends="changelog">
<mkdir dir="/tmp/BroadChat" />
<javac srcdir="${basedir}/src" includes="de/starletp9/BroadChat/TCPServer/ListenThread.java" destdir="/tmp/BroadChat" optimize="true" debug="false" classpath="${basedir}/../libs/jdom/build/jdom.jar" />
<jar destfile="${basedir}/TCP-Server.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="de.starletp9.BroadChat.TCPServer.ListenThread" />
<attribute name="Class-Path" value="." />
</manifest>
<zipfileset src="${basedir}/../libs/jdom/build/jdom.jar" />
<fileset dir="/tmp/BroadChat" />
<fileset dir="${basedir}">
<filename name="*.txt"/>
</fileset>
</jar>
<delete dir="/tmp/BroadChat" />
</target>
<target name="build-SimpleGUI-TC-Edition" depends="changelog">
<mkdir dir="/tmp/BroadChat" />
<javac srcdir="${basedir}/src" includes="de/starletp9/BroadChat/StartSimpleGUIWithRemoteBackend.java" destdir="/tmp/BroadChat" optimize="true" debug="false" classpath="${basedir}/../libs/jdom/build/jdom.jar" />
<jar destfile="${basedir}/SimpleGUI-TC-Edition.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="de.starletp9.BroadChat.StartSimpleGUIWithRemoteBackend" />
<attribute name="Class-Path" value="." />
</manifest>
<fileset dir="/tmp/BroadChat" />
<fileset dir="${basedir}">
<filename name="*.txt"/>
</fileset>
</jar>
<delete dir="/tmp/BroadChat" />
</target>
<target name="build-ALL" depends="build-TUI, build-SimpleGUI, build-TCP-Server, build-SimpleGUI-TC-Edition" />
</project>