-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
79 lines (61 loc) · 2.52 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
78
79
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
19.04.2008
TCPscript
Execute scripts for openning TCP connections to send and receive
data packets.
Carlos F. Heuberger
====================================================================== -->
<project name="TCPscript" default="dist" basedir=".">
<description>
Execute scripts for openning TCP connections to send and receive
data packets. To help testing communications software
</description>
<property file="build.properties" />
<path id="lib.class.path">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>
<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.">
<copy todir="${dist.dir}">
<fileset dir="${lib.dir}" includes="**" />
</copy>
</target>
<target name="jar" depends="compile" description="Create JAR.">
<jar destfile="${jar.file}" manifest="manifest.txt">
<fileset dir="${classes.dir}" />
</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="lib/**" />
<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}"
classpathref="lib.class.path">
</javac>
</target>
</project>