File: build.xml

package info (click to toggle)
ldapjdk 4.20.0%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,708 kB
  • sloc: ansic: 44,727; java: 39,132; xml: 7,419; sh: 4,185; perl: 3,774; makefile: 1,681; cpp: 979
file content (151 lines) | stat: -rw-r--r-- 5,504 bytes parent folder | download | duplicates (11)
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
<?xml version="1.0"?>
<!-- This file is intended for ANT, a Java based build tool.       -->
<!-- ANT is availale from http://jakarta.apache.org/ant/index.html -->

<!-- The default target includes compiling and making JAR files    -->

<project default="jars" basedir=".">

  <!-- ##################################################### -->
  <!-- # Usage                                             # -->
  <!-- ##################################################### -->
  <target name="usage">
    <echo>
     ant compile  -> compiles source files
     ant jars     -> makes jar files of compiled source
     ant clean    -> guess
    </echo>
  </target>

  <!-- ##################################################### -->
  <!-- # Set Version numbers                               # -->
  <!-- #   used only in Javadoc?                           # -->
  <!-- ##################################################### -->

  <property name="name" value="ietfldap"/>
  <property name="version" value="0.1"/>
  <property name="year" value="2001"/>

<!-- 
  <property name="build.compiler" value="classic"/>
-->
  <property name="debug" value="on"/>

  <property name="src.dir" value="."/>

  <property name="packages" value="org.*"/>

  <property name="build.file" value="build.xml"/>
  <property name="build.dir"  value="."/>
  <property name="build.dest" value="./classes"/>
  <property name="build.lib"  value="./lib"/>
  <property name="build.javadocs"  value="./javadoc"/>

  <property name="javadoc.private" value="false"/>
  <property name="javadoc.protected" value="false"/>
  <path id="javadoc.path">
    <pathelement location="${src.dir}"/>
  </path>

  <property name="jaas.dir"         value="../ldapjdk/lib"/>
  <property name="jsse.dir"         value="../ldapjdk/lib"/>
  <property name="jnet.dir"         value="../ldapjdk/lib"/>
  <property name="sasl.dir"         value="../ldapjdk/lib"/>

  <!-- ##################################################### -->
  <!-- # construct the classpath                           # -->
  <!-- ##################################################### -->
  <path id="class.path">
    <pathelement location="${jaas.dir}/jaas.jar"/>
    <pathelement location="${jsse.dir}/jsse.jar"/>
    <pathelement location="${jsse.dir}/jnet.jar"/>
    <pathelement location="${sasl.dir}/sasl.jar"/>
    <pathelement location="${build.dest}"/>
    <pathelement location="."/>
  </path>

  <property name="classpath" refid="class.path"/>


  <!-- ##################################################### -->
  <!-- # init - anything that needs to be done first of all# -->
  <!-- ##################################################### -->
  <target name="init">
    <!-- Set the NOW property to the current time -->
	<tstamp>
	  <format property="NOW" pattern="MMMM dd yyyy HH:mm"/>
	</tstamp>
  </target>


  <!-- ##################################################### -->
  <!-- # classpath - echo the CLASSPATH that would be used # -->
  <!-- ##################################################### -->
  <target name="classpath">
    <echo message="${classpath}"/>
  </target>

  <!-- ##################################################### -->
  <!-- # compile                                           # -->
  <!-- ##################################################### -->
  <target name="compile" depends="init">
    <mkdir dir="${build.dest}"/>
    <javac srcdir="${src.dir}" 
           destdir="${build.dest}" 
           debug="${debug}"
           excludes="${build.excludes}"
		   deprecation="on"
	       classpathref="class.path"/>
	<copy todir="${build.dest}" >
		<fileset dir="${src.dir}">
		<exclude name="classes/**"/>
		<include name="**/*.properties"/>
		</fileset>
	</copy>
  </target>

  <!-- ##################################################### -->
  <!-- # jars                                              # -->
  <!-- ##################################################### -->
  <target name="jars" depends="compile">
    <mkdir dir="${build.lib}"/>
    <jar jarfile="${build.lib}/${name}.jar"
		basedir="${build.dest}"
		includes="org/ietf/ldap/** LDAP*.class">
	</jar>
  </target>

  <!-- ##################################################### -->
  <!-- # javadoc                                           # -->
  <!-- ##################################################### -->
  <target name="javadoc" depends="init">
    <mkdir dir="${build.javadocs}"/>
    <javadoc  packagenames="${packages}"
              sourcepathref="javadoc.path"
	          classpathref="class.path"
              destdir="${build.javadocs}"
	          private="${javadoc.private}"
	          protected="${javadoc.protected}"
              author="true"
              version="true"
              use="true"
              windowtitle="${name} API as of ${NOW}"
			  link="http://java.sun.com/j2se/1.3/docs/api"
              doctitle="${name}"
              bottom="Subject to Mozilla Public License">
        <group title="Utilities" packages="org.ietf.ldap.util*"/>
        <group title="Controls" packages="org.ietf.ldap.controls*"/>
        <link href="http://java.sun.com/products/jdk/1.3/docs/api"/>
    </javadoc>
  </target>

  <!-- ##################################################### -->
  <!-- # clean                                             # -->
  <!-- ##################################################### -->
  <target name="clean">
    <delete dir="${build.dest}"/>
    <delete dir="${build.lib}"/>    
    <delete dir="${build.javadocs}"/>
  </target>

</project>