forked from aptivate/openldap-jldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavac.xml
115 lines (104 loc) · 5 KB
/
javac.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
<!-- $OpenLDAP$ -->
<!-- ======================================================================= -->
<!-- JAVAC build file -->
<!-- ======================================================================= -->
<project name="jldap" default="debug" basedir=".">
<!-- Targets -->
<!-- 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.-->
<!--
******************************************************************************
* Copyright (C) 1999, 2000, 2001 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.
******************************************************************************
-->
<!-- =================================================================== -->
<!-- Initialization -->
<!-- =================================================================== -->
<target name="init">
<tstamp/>
<filter token="COMPILE_DEBUG" value="${DEBUG_VALUE}"/>
</target>
<target name="setupDebug" depends="init">
<delete file="${src}/com/novell/ldap/client/Debug.java"/>
<copy
file="${src}/com/novell/ldap/client/Debug.template"
tofile="${src}/com/novell/ldap/client/Debug.java"
overwrite="YES"
filtering="YES"
/>
</target>
<!-- =================================================================== -->
<!-- build debug classes -->
<!-- =================================================================== -->
<target name="debug" depends="setupDebug">
<echo message="DEBUG compile in com/novell"/>
<mkdir dir="${build.debug}"/>
<javac
srcdir="${src}"
includes="com/novell/**/*.java,jldap/com/novell/security/sasl/*.java,org/ietf/**/*.java"
excludes="com/novell/services/**/*.java,${exclude.dsmlconnection},${exclude.spmlconnection}"
destdir="${build.debug}"
target="1.2"
deprecation="off"
debug="on"
optimize="off">
<classpath>
<pathelement location="external/ssl/domestic/nssl1.2_dom.jar"/>
<pathelement location="external/jsse/lib/jcert.jar"/>
<pathelement location="external/jsse/lib/jnet.jar"/>
<pathelement location="external/jsse/lib/jsse.jar"/>
<!-- Take care of optional components -->
<fileset dir="${ext}">
<include name="commons-httpclient-*.jar"/>
<include name="openspml*.jar"/>
</fileset>
</classpath>
</javac>
<echo message="Creating DEBUG ${lib.debug}/${ldap}.jar file"/>
<mkdir dir="${lib.debug}"/>
<jar
jarfile="${lib.debug}/${ldap}.jar"
basedir="${build.debug}"
/>
</target>
<!-- =================================================================== -->
<!-- build release classes -->
<!-- =================================================================== -->
<target name="release" depends="setupDebug">
<echo message="RELEASE compile in com/novell"/>
<mkdir dir="${build}"/>
<javac
srcdir="."
includes="com/novell/**/*.java,jldap/com/novell/security/sasl/*.java,org/ietf/**/*.java"
excludes="com/novell/services/**/*.java"
destdir="${build}"
target="1.2"
deprecation="off"
debug="off"
optimize="on">
<classpath>
<pathelement location="external/ssl/domestic/nssl1.2_dom.jar"/>
<pathelement location="external/jsse/lib/jcert.jar"/>
<pathelement location="external/jsse/lib/jnet.jar"/>
<pathelement location="external/jsse/lib/jsse.jar"/>
<pathelement location="external/commons-httpclient-2.0-rc2.jar"/>
</classpath>
</javac>
<echo message="Creating RELEASE ${lib}/${ldap}.jar file"/>
<mkdir dir="${lib}"/>
<jar jarfile="${lib}/${ldap}.jar"
basedir="${build}"
/>
</target>
</project>