Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
225 lines (193 loc) · 7.72 KB
/
Copy pathbuild.xml
File metadata and controls
225 lines (193 loc) · 7.72 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?xml version="1.0" encoding="UTF-8"?>
<!--
**************************************************************************
* @ProjectName_____________________________________@ Version: @VerNr@ *
* *
* This software is the proprietary information of STRATEGY OBJECT. *
* Use is subject to license terms. *
* *
* Copyright (c) 1997-2009 STRATEGY OBJECT *
* All rights reserved. @VersionDate__________@ *
**************************************************************************
-->
<project basedir="." default="jars" name="asytutorial">
<property file="build.properties"/>
<!-- The line below will include in build global properties -->
<property file="${build.dir}/global.properties"/>
<property file="classpath.properties"/>
<property file="extclasspath.properties"/>
<property file="${moduleinfo.properties}"/>
<property name="classpath" value="${using.classpath}:${using.extclasspath}"/>
<target name="-print" unless="l.printed">
<echo> Project: ${ant.project.name}
Processing ${ant.file} </echo>
<property name="l.printed" value="true"/>
</target>
<target name="-defineBDO">
<taskdef name="bdo" classname="so.ant.tasks.BuildDependsOn" classpath="${build.dir}/ant/lib/soant.jar"/>
</target>
<!--
Make jar(s).
-->
<target name="jars" depends="-print,-defineBDO" description="Compile project">
<bdo buildfiles="${subproject.buildfiles}"
target="jars"
properties="fastcompile"
inheritAll="false"/>
</target>
<!--
Make java documentation.
-->
<target name="javadoc" depends="-print" description="Javadoc for my API.">
<mkdir dir="${docs}"/>
<tstamp>
<format property="CURRDATE" pattern="dd-MM-yyyy"/>
</tstamp>
<tstamp>
<format property="YEAR" pattern="yyyy" locale="en"/>
</tstamp>
<property name="subproject.name" value="${module.fullname}"/>
<property name="subproject.version" value="${module.version}"/>
<javadoc destdir="${docs}"
maxmemory="128m"
packagenames="kz.asytutorial.*"
overview="overview.html"
use="true"
author="true"
splitindex="true"
windowtitle="${subproject.name}"
stylesheetfile="stylesheet.css"
version="true">
<doctitle><![CDATA[<h1>${subproject.name}</h1>]]></doctitle>
<header><![CDATA[<B>${subproject.name}</B> ver. ${subproject.version}]]></header>
<footer><![CDATA[<A HREF=mailto:support@strategyobject.com?subject=${subproject.name}%20${subproject.version}%20Comments>Submit your comments</A>]]></footer>
<bottom><![CDATA[<FONT COLOR="#A43490">Copyright © 1996-${YEAR} <A HREF="http://www.strategyobject.com">Strategy Object</A>. All rights reserved. <BR>Last revised: ${CURRDATE}</FONT>]]></bottom>
<sourcepath>
<pathelement location="${Shared}/src"/>
<pathelement location="${Client}/src"/>
<pathelement location="${Server}/src"/>
</sourcepath>
</javadoc>
</target>
<!--
Clean our build.
-->
<target name="clean" depends="-print,-defineBDO" description="Clean all build.">
<bdo buildfiles="${subproject.buildfiles}" target="clean" inheritAll="false"/>
<delete dir="${docs}"/>
<delete>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</delete>
<delete failonerror="false" dir="${release.dir}"/>
<property name="fastcompile" value="true"/>
</target>
<!--
Create src.zip
-->
<target name="src.zip" depends="-print" description="Create src.zip">
<mkdir dir="${release.dir}"/>
<zip zipfile="${release.dir}/src.zip">
<fileset dir="${Shared}/src" includes="**/*.java"/>
<fileset dir="${Client}/src" includes="**/*.java"/>
<fileset dir="${Server}/src" includes="**/*.java"/>
</zip>
</target>
<!--
Create doc.zip
-->
<target name="doc.zip" depends="-print,javadoc" description="Create doc.zip">
<mkdir dir="${release.dir}"/>
<zip zipfile="${release.dir}/doc.zip">
<fileset dir="." includes="${docs}/**/*"/>
</zip>
</target>
<!--
Create project.zip
-->
<target name="project.zip" depends="-print" description="Create project.zip">
<mkdir dir="${release.dir}"/>
<zip zipfile="${release.dir}/project.zip">
<fileset dir=".">
<exclude name="*.zip"/>
<exclude name="*.jar"/>
<exclude name="**/release/*"/>
<exclude name="release/*"/>
<exclude name="**/*.class"/>
<exclude name="**/.*"/>
<exclude name="lib/**"/>
<exclude name="**/lib/**"/>
<exclude name="docs/**"/>
<exclude name="**/docs/**"/>
</fileset>
</zip>
</target>
<!--
Deploying targets. Used to update installed JARS with newly compiled version.
-->
<target name="serverDeploy"
depends="-print,-defineBDO"
description="Deploys server JARs."
if="so.server.install.dir">
<bdo buildfiles="${subproject.buildfiles}" target="serverDeploy" inheritAll="false"/>
</target>
<target name="clientDeploy"
depends="-print,-defineBDO"
description="Deploys client JARs."
if="so.client.install.dir">
<bdo buildfiles="${subproject.buildfiles}" target="clientDeploy" inheritAll="false"/>
</target>
<target name="ulaDeploy"
depends="-print,-defineBDO"
description="Deploys ULA JARs."
if="so.ula.install.dir">
<bdo buildfiles="${subproject.buildfiles}" target="ulaDeploy" inheritAll="false"/>
</target>
<target name="synchronize"
depends="-print,-defineBDO"
description="Deploys all JARs.">
<bdo buildfiles="${subproject.buildfiles}" target="synchronize" inheritAll="false"/>
</target>
<target name="-somlng" if="languages">
<ant dir="${Server}" target="somlng" inheritAll="false">
<property name="prepare.dir" location="${prepare.dir}"/>
<property name="languages" value="${languages}"/>
</ant>
</target>
<!--
Prepare files into directory for building of setup program
-->
<target name="makeServer" depends="-print" description="Build server" if="prepare.dir">
<condition property="p1" value="som.languages=${som.languages}">
<isset property="som.languages"/>
</condition>
<condition property="p1" value="">
<not>
<isset property="p1"/>
</not>
</condition>
<delete failonerror="false" file="p1.tmp"/>
<concat destfile="p1.tmp">${p1}</concat>
<ant dir="${Server}" target="som" inheritAll="false">
<property name="prepare.dir" location="${prepare.dir}"/>
<property file="p1.tmp"/>
<property name="fastcompile" value="${fastcompile}"/>
</ant>
<delete failonerror="false" file="p1.tmp"/>
<antcall target="-somlng"/>
</target>
<target name="makeClient" depends="-print,-defineBDO" description="Build client" if="prepare.dir">
<bdo buildfiles="${subproject.buildfiles}" target="clientDeploy" inheritAll="false">
<property name="so.client.install.dir" location="${prepare.dir}"/>
</bdo>
</target>
<target name="makeUla" depends="-print,-defineBDO" description="Build ULA" if="prepare.dir">
<bdo buildfiles="${subproject.buildfiles}" target="ulaDeploy" inheritAll="false">
<property name="so.ula.install.dir" location="${prepare.dir}"/>
</bdo>
</target>
<target name="test" description="JUnit test" depends="-print,-defineBDO,jars">
<bdo buildfiles="${subproject.buildfiles}" target="test" inheritAll="false"/>
</target>
</project>