This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
151 lines (131 loc) · 6.45 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0"?>
<!-- ======================================================================
01.12.2008
Additional object drivers package.
(C) 2008-2009 Andrew A. Porokhin
====================================================================== -->
<project name="NMS " default="all">
<property file="${basedir}/build.user.properties"/>
<property file="${basedir}/build.default.properties"/>
<import file="${dir.nms}/nms/common-build.xml"/>
<description>
Make file for server transports code.
</description>
<target name="all" description="==> aap drivers code" depends="build" />
<target name="clean" description="==> clean" depends="clean-remove-build-dir" />
<target name="build" depends="messages">
<javac srcdir="server" destdir="${dir.build}" source="1.5">
<classpath refid="build.common.libs"/>
<classpath>
<pathelement location="${dir.release.server}/core-storage.jar"/>
<pathelement location="${dir.release.server}/core-drivers.jar"/>
<pathelement location="${dir.release.server}/core-server-drivers-common.jar"/>
<pathelement location="${dir.release.server}/core-services-messages.jar"/>
</classpath>
</javac>
<javac srcdir="client" destdir="${dir.build}" source="1.5">
<classpath refid="build.common.libs"/>
<classpath>
<pathelement location="${dir.release.client}/core-drivers.jar"/>
<pathelement location="${dir.release.client}/core-devices.jar"/>
<pathelement location="${dir.release.client}/core-messages.jar"/>
<pathelement location="${dir.release.client}/core-conn.jar"/>
<pathelement location="${dir.release.client}/core-services-messages.jar"/>
</classpath>
</javac>
</target>
<target name="client-lang">
<native2ascii encoding="KOI8-R"
src="client/resources/client/language"
dest="client/resources/client/language"
includes="**/*.src" ext=".lng" />
</target>
<target name="server-lang">
<native2ascii encoding="KOI8-R"
src="server/resources/server/language"
dest="server/resources/server/language"
includes="**/*.src" ext=".lng" />
</target>
<target name="messages">
<tpl src="messages" includes="**/*tpl"/>
<javac srcdir="messages" destdir="${dir.build}" source="1.4">
<classpath>
<pathelement location="${dir.top}/nms-base/lib/odisp.jar" />
<pathelement location="${dir.top}/nms-base/lib/jug.jar" />
</classpath>
</javac>
</target>
<target name="basic-manifest">
<manifest file="${file.manifest}" mode="replace">
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Copyright" value="(C) 2008-2009 Andrew Porokhin"/>
<attribute name="Version" value="${build.version}.${build.number}"/>
<section name="nms">
<attribute name="Creator" value="${user.name}"/>
<attribute name="Customer" value="${build.customer}"/>
<attribute name="Date" value="${TODAY}"/>
</section>
</manifest>
</target>
<!--
Jars: release engineering.
-->
<target name="jar-sm-aap-drivers-resources" depends="client-lang, basic-manifest">
<delete file="${dir.release.client}/sm-aap-drivers-resources.jar"/>
<jar basedir="client"
destfile="${dir.release.client}/sm-aap-drivers-resources.jar"
includes="resources/client/**/*png, resources/client/**/*jpg, resources/client/**/*gif, resources/client/**/*xml, resources/client/**/*lng, resources/client/**/*wav" excludes="**/*html"
manifest="${file.manifest}"/>
</target>
<target name="jar-sm-aap-drivers-client" depends="build, basic-manifest">
<delete file="${dir.release.client}/sm-aap-drivers.jar" />
<jar basedir="${dir.build}"
destfile="${dir.release.client}/sm-aap-drivers.jar"
includes="org/aap/nms/driver/client/**/*" excludes="**/*html"
manifest="${file.manifest}">
<manifest>
<attribute name="Description" value="Drivers by AAP, client side." />
</manifest>
</jar>
</target>
<target name="jar-sm-aap-drivers-server" depends="build, basic-manifest">
<delete file="${dir.release.server}/sm-aap-drivers.jar" />
<jar basedir="${dir.build}"
destfile="${dir.release.server}/sm-aap-drivers.jar"
includes="org/aap/nms/driver/server/**/*" excludes="**/*html"
manifest="${file.manifest}">
<manifest>
<attribute name="Description" value="Drivers by AAP, server side." />
</manifest>
</jar>
</target>
<target name="jar-sm-aap-performance-server" depends="build, basic-manifest">
<delete file="${dir.release.server}/sm-aap-performance.jar" />
<jar basedir="${dir.build}"
destfile="${dir.release.server}/sm-aap-perfomance.jar"
includes="org/aap/nms/performance/server/**/*" excludes="**/*html"
manifest="${file.manifest}">
<manifest>
<attribute name="Description" value="Performance tests for server." />
</manifest>
</jar>
</target>
<target name="jar-sm-aap-drivers-messages" depends="build, basic-manifest">
<delete file="${dir.release.client}/sm-aap-drivers-messages.jar" />
<delete file="${dir.release.server}/sm-aap-drivers-messages.jar" />
<jar basedir="${dir.build}"
destfile="${dir.release.server}/sm-aap-drivers-messages.jar"
includes="org/aap/nms/driver/messages/**/*" excludes="**/*html"
manifest="${file.manifest}">
<manifest>
<attribute name="Description" value="Messages package for AAP." />
</manifest>
</jar>
<copy file="${dir.release.server}/sm-aap-drivers-messages.jar" tofile="${dir.release.client}/sm-aap-drivers-messages.jar" />
</target>
<target name="jar" depends="jar-sm-aap-drivers-server,
jar-sm-aap-drivers-client,
jar-sm-aap-drivers-messages,
jar-sm-aap-drivers-resources,
jar-sm-aap-performance-server" />
</project>