-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
67 lines (51 loc) · 2.07 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"?>
<!-- ======================================================================
19.04.2008
TCPserver
Helper classes to handle TCP connections.
Carlos F. Heuberger
====================================================================== -->
<project name="TCPserver" default="dist" basedir=".">
<description>
Helper classes to handle TCP connections.
</description>
<property file="build.properties" />
<target name="-init">
<tstamp />
<mkdir dir="${build.dir}" />
<mkdir dir="${classes.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="clean" description="Remove generated files and directories.">
<delete dir="${classes.dir}" />
<delete dir="${build.dir}" />
</target>
<target name="dist" depends="jar,srcjar" description="Makes distributions.">
</target>
<target name="jar" depends="compile" description="Create JAR.">
<jar
destfile="${jar.file}"
basedir="${classes.dir}"
manifest="manifest.txt">
</jar>
</target>
<target name="srcjar" depends="compile" description="Create JAR.">
<jar destfile="${srcjar.file}" filesonly="true">
<manifest>
<attribute name="Implementation-Vendor"
value="Carlos F. Heuberger" />
</manifest>
<fileset dir="${basedir}" includes="src/**" />
<fileset dir="${basedir}" includes="test/**" />
<fileset dir="${basedir}" includes="/*" />
</jar>
</target>
<target name="compile" depends="-init" description="Compile the sources.">
<javac
srcdir="${src.dir}"
destdir="${classes.dir}"
debug="${debug.flag}"
deprecation="${deprecation.flag}">
</javac>
</target>
</project>