-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.xml
346 lines (312 loc) · 17.2 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
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<!-- $OpenLDAP$ -->
<!--
******************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
* TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
* TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
* AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
* IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
* OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
* PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
* THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
******************************************************************************
-->
<!-- ======================================================================= -->
<!-- TOP level build file -->
<!-- ======================================================================= -->
<project name="jldap" default="debug" basedir=".">
<!-- Targets -->
<!-- clean - Cleans all generated files and directories in this and -->
<!-- subbordinate directories -->
<!-- cleanpkg- Cleans pkg directory -->
<!-- doc - Builds javadoc files -->
<!-- Not available at the lowest directory level -->
<!-- debug - Builds debug classes and jar files -->
<!-- At the lowest level directory it only compiles java files.-->
<!-- release - Builds release classes and jar files -->
<!-- At the lowest level directory it only compiles java files.-->
<!-- lib - Builds debug & release classes and jar files. -->
<!-- At the lowest level directory it only compiles java files.-->
<!-- jar - Synonym for lib -->
<!-- all - Builds everything possible. At the top directory level it-->
<!-- builds all, doc, & install. At one directory level below -->
<!-- the top it builds all, & doc. At the lowest directory -->
<!-- level it compiles java files for release and debug. -->
<!-- install - Copies build results from all directories and creates the -->
<!-- pkg directory. Only available in top makefile -->
<!-- pkg - Synonym for install -->
<property name="docsrc" value="."/>
<property name="src" value="."/>
<property name="ext" value="ext"/>
<property name="ldap" value="ldap"/>
<property name="lib" value="lib"/>
<property name="lib.debug" value="lib_debug"/>
<property name="build" value="classes"/>
<property name="build.debug" value="classes_debug"/>
<property name="doc" value="doc"/>
<property name="ietfdoc" value="ietfdoc"/>
<property name="doc.developer" value="${doc}"/>
<property name="pkg" value="pkg"/>
<property name="pkg.lib" value="${pkg}/${lib}"/>
<property name="pkg.lib.debug" value="${pkg}/${lib}_debug"/>
<property name="pkg.doc" value="${pkg}/${doc}"/>
<property name="pkg.ietfdoc" value="${pkg}/${ietfdoc}"/>
<property name="pkg.wars" value="${pkg}/wars"/>
<!-- =================================================================== -->
<!-- Initialization -->
<!-- =================================================================== -->
<target name="init">
<tstamp/>
<mkdir dir="ext"/>
<condition property="exclude.dsmlconnection" value="com/novell/ldap/Dsml*.java,com/novell/ldap/DSML*.java,com/novell/ldap/util/HttpRequestCallback.java">
<not>
<available classname="org.apache.commons.httpclient.methods.PostMethod" >
<classpath>
<fileset dir="${ext}">
<include name="commons-httpclient-*.jar"/>
</fileset>
</classpath>
</available>
</not>
</condition>
<condition property="exclude.spmlconnection" value="com/novell/ldap/spml/*.java,com/novell/ldap/SPML*.java">
<not>
<available classname="org.openspml.client.SpmlClient">
<classpath>
<fileset dir="${ext}">
<include name="openspml*.jar"/>
</fileset>
</classpath>
</available>
</not>
</condition>
<echo message="dsmlv2 connnection is available : ${exclude.dsmlconnection}"></echo>
<echo message="spml connnection is available : ${exclude.spmlconnection}"></echo>
</target>
<!-- =================================================================== -->
<!-- all - clean, build debug, release, dist -->
<!-- =================================================================== -->
<target name="all" depends="init, cleanpkg, lib, doc, install" />
<!-- =================================================================== -->
<!-- clean all files -->
<!-- =================================================================== -->
<target name="clean" depends="init, cleancode, cleanwars, cleandoc">
<echo message="Cleaning files"/>
</target>
<!-- =================================================================== -->
<!-- clean code result files -->
<!-- =================================================================== -->
<target name="cleancode" depends="init">
<echo message="Cleaning files"/>
<delete file="com/novell/ldap/client/Debug.java"/>
<delete dir="${lib}"/>
<delete dir="${lib.debug}"/>
<delete dir="${build}"/>
<delete dir="${build.debug}"/>
</target>
<!-- =================================================================== -->
<!-- clean doc files -->
<!-- =================================================================== -->
<target name="cleandoc" depends="init">
<echo message="Cleaning files"/>
<delete dir="${doc}"/>
<delete dir="${pkg.doc}"/>
<delete dir="${pkg.ietfdoc}"/>
</target>
<!-- =================================================================== -->
<!-- clean the pkg/war directory -->
<!-- =================================================================== -->
<target name="cleanpkgwars" depends="init">
<delete dir="${pkg.wars}"/>
</target>
<!-- =================================================================== -->
<!-- clean the pkg directory -->
<!-- Note: The doc directory is left intact -->
<!-- ant doc will rebuild it -->
<!-- =================================================================== -->
<target name="cleanpkg" depends="init, cleanpkgwars">
<delete dir="${pkg.lib}"/>
<delete dir="${pkg.lib.debug}"/>
</target>
<!-- =================================================================== -->
<!-- really clean all files -->
<!-- =================================================================== -->
<target name="reallyclean" depends="clean, cleanpkg">
<delete dir="${pkg}"/>
</target>
<!-- =================================================================== -->
<!-- clean war file -->
<!-- =================================================================== -->
<target name="cleanwars">
<ant
dir="com/novell/services/dsml"
antfile="build.xml"
target="clean">
<property name="top" location="."/>
</ant>
</target>
<!-- =================================================================== -->
<!-- build Servlets -->
<!-- =================================================================== -->
<target name="servlet_stream" depends="debug, release">
<ant dir="${basedir}/com/novell/services/dsml/stream" target="all">
<property name="top" location="."/>
</ant>
</target>
<target name="servlet_dom" depends="debug, release">
<ant dir="${basedir}/com/novell/services/dsml/dom" target="all">
<property name="top" location="."/>
</ant>
</target>
<!-- =================================================================== -->
<!-- build war files -->
<!-- =================================================================== -->
<target name="war_stream" depends="servlet_stream">
<ant
dir="com/novell/services/dsml/stream"
antfile="buildwar.xml"
target="all">
<property name="top" location="."/>
</ant>
</target>
<target name="war_dom" depends="servlet_dom">
<ant
dir="com/novell/services/dsml/dom"
antfile="buildwar.xml"
target="all">
<property name="top" location="."/>
</ant>
</target>
<target name="wars" depends="war_stream, war_dom"/>
<target name="clone_wars" depends="wars"/>
<!-- =================================================================== -->
<!-- build debug classes -->
<!-- =================================================================== -->
<target name="debug" depends="init">
<ant antfile="javac.xml" target="debug">
<property name="DEBUG_VALUE" value="true"/>
</ant>
</target>
<!-- =================================================================== -->
<!-- build release classes -->
<!-- =================================================================== -->
<target name="release" depends="init">
<ant antfile="javac.xml" target="release">
<property name="DEBUG_VALUE" value="false"/>
</ant>
</target>
<!-- =================================================================== -->
<!-- setup for javadoc -->
<!-- =================================================================== -->
<target name="setupDoc" depends="init">
<ant antfile="javac.xml" target="setupDebug">
<property name="DEBUG_VALUE" value="true"/>
</ant>
</target>
<!-- =================================================================== -->
<!-- final is synonym for build release classes -->
<!-- =================================================================== -->
<target name="final" depends="release" />
<!-- =================================================================== -->
<!-- build lib files -->
<!-- =================================================================== -->
<target name="lib" depends="debug, release"/>
<!-- =================================================================== -->
<!-- jar is synonym for build lib files -->
<!-- =================================================================== -->
<target name="jar" depends="lib"/>
<!-- =================================================================== -->
<!-- Create and populate the distribution (pkg) directory -->
<!-- =================================================================== -->
<target name="dist" depends="init">
<mkdir dir="${src}/${lib}"/>
<mkdir dir="${src}/${lib.debug}"/>
<mkdir dir="${pkg.lib}"/>
<mkdir dir="${pkg.lib.debug}"/>
<mkdir dir="${pkg.doc}"/>
<mkdir dir="${pkg.ietfdoc}"/>
<copy
todir="${pkg.lib}">
<fileset dir="${src}/${lib}"/>
</copy>
<copy
todir="${pkg.lib.debug}">
<fileset dir="${src}/${lib.debug}"/>
</copy>
<copy
file="README"
tofile="${pkg}/README.txt"
/>
</target>
<!-- =================================================================== -->
<!-- pkg & install are synonyms for create distribution directory -->
<!-- =================================================================== -->
<target name="install" depends="dist"/>
<target name="pkg" depends="dist"/>
<!-- =================================================================== -->
<!-- create javadoc -->
<!-- =================================================================== -->
<target name="doc" depends="docnovellldap, docietfldap, docdeveloper"/>
<!-- =================================================================== -->
<!-- create javadoc for Novell ldap classes -->
<!-- =================================================================== -->
<target name="docnovellldap" depends="init, setupDoc">
<delete dir="${pkg.doc}"/>
<echo message="Creating distribution ldap javadoc"/>
<mkdir dir="${pkg.doc}"/>
<javadoc
sourcepath="${docsrc}"
destdir="${pkg.doc}"
classpath="${lib.debug}/${ldap}.jar;external/jsse/lib/jcert.jar;external/jsse/lib/jnet.jar;external/jsse/lib/jsse.jar;external/jaxp/jaxp.jar;external/jaxp/xerces.jar"
packagenames="com.novell.security.sasl,com.novell.ldap.extensions,com.novell.ldap.controls,com.novell.ldap.asn1,com.novell.ldap.util,com.novell.ldap"
overview="overview.html"
Windowtitle="LDAP Classes"
Splitindex="true"
Doctitle="LDAP Classes, Controls, Extensions, and ASN.1"
Header="<b>LDAP Classes</b><br><font size=-1>Implements Java LDAP</font>"
Bottom="<font size=-1>Copyright © 2002 Novell, Inc. All Rights Reserved. <br>Novell, Inc.<br>1800 South Novell Place<br>Provo, Ut 84606<br>Phone: (801) 861-5000</font>"
/>
</target>
<!-- =================================================================== -->
<!-- create javadoc for IETF ldap classes -->
<!-- =================================================================== -->
<target name="docietfldap" depends="init, setupDoc">
<delete dir="${pkg.ietfdoc}"/>
<echo message="Creating distribution ldap javadoc"/>
<mkdir dir="${pkg.ietfdoc}"/>
<javadoc
sourcepath="${docsrc}"
destdir="${pkg.ietfdoc}"
classpath="${lib.debug}/${ldap}.jar;external/jsse/lib/jcert.jar;external/jsse/lib/jnet.jar;external/jsse/lib/jsse.jar;external/jaxp/jaxp.jar;external/jaxp/xerces.jar"
packagenames="org.ietf.ldap"
overview="overview-ietf.html"
Windowtitle="LDAP Classes"
Splitindex="true"
Doctitle="LDAP Classes, Controls, Extensions, and ASN.1"
Header="<b>LDAP Classes</b><br><font size=-1>Implements Java LDAP</font>"
Bottom="<font size=-1>Copyright © 2002 Novell, Inc. All Rights Reserved. <br>Novell, Inc.<br>1800 South Novell Place<br>Provo, Ut 84606<br>Phone: (801) 861-5000</font>"
/>
</target>
<!-- =================================================================== -->
<!-- create javadoc for all LDAP classes for internal developer use only -->
<!-- =================================================================== -->
<target name="docdeveloper" depends="init, setupDoc">
<delete dir="${pkg.developer}"/>
<echo message="Creating internal developer ldap javadoc"/>
<mkdir dir="${doc.developer}"/>
<filter token="COMPILE_DEBUG" value="true"/>
<javadoc sourcepath="${docsrc}"
destdir="${doc.developer}"
classpath="${lib.debug}/${ldap}.jar;external/jsse/lib/jcert.jar;external/jsse/lib/jnet.jar;external/jsse/lib/jsse.jar;external/jaxp/jaxp.jar;external/jaxp/xerces.jar"
packagenames="org.ietf.ldap,com.novell.security.sasl,com.novell.sasl.client,com.novell.ldap.asn1,com.novell.ldap.client,com.novell.ldap.rfc2251,com.novell.ldap.resources,com.novell.ldap.extensions,com.novell.ldap.controls,com.novell.ldap.util,com.novell.ldap"
Windowtitle="LDAP Classes"
Splitindex="true"
Private="true"
Doctitle="Novell, Inc. All Java LDAP Classes for Developer Internal Use"
Header="<b>All LDAP Classes</b><br><font size=-1>Internal LDAP Classes</font>"
Bottom="<font size=-1>Copyright © 2002 Novell, Inc. All Rights Reserved. <br>Novell, Inc.<br> 1800 South Novell Place<br> Provo, Ut 84606<br> Phone: (801) 861-5000</font>"
/>
</target>
</project>