File: build.xml

package info (click to toggle)
wsdl4j 1.6.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,020 kB
  • ctags: 1,774
  • sloc: java: 11,288; xml: 200; sh: 11; makefile: 8
file content (321 lines) | stat: -rw-r--r-- 12,399 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>

<!-- ===================================================================
 
   Build file for WSDL4J

Notes:
   This is a build file for use with the Apache Ant build tool.

Prerequisites:

   Apache Ant from http://ant.apache.org
   A JAXP-compliant DOM parser.
     - e.g. Apache Xerces, from http://xerces.apache.org/xerces2-j/

Optional additions:


Build Instructions:
   To build, run

     java org.apache.tools.ant.Main <target>

   in the directory where this file is located with the target you want.

Main targets:

 - compile  -> creates the "wsdl4j.jar" package in "./build/lib"
 - javadocs -> creates the javadocs in "./build/javadocs"
 - dist     -> creates the complete binary distribution
 - srcdist  -> creates the complete src distribution
 - clean    -> removes all the generated files and directories

Author:
  Matthew J. Duftler <duftler@us.ibm.com>

==================================================================== -->

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

  <target name="init">
    <property name="name" value="wsdl4j"/>
    <property name="Name" value="WSDL4J"/>
    <property name="wsdl4j.version" value="1.6.3"/>
    <property name="wsdl4j.version.underscore" value="1_6_3"/>
    <property name="jwsdl.version" value="1.2"/>
    <property name="jwsdl.version.underscore" value="1_2"/>
    <property name="qname.version" value="1.0"/>
    <property name="year" value="2003, 2013"/>

    <property name="build.compiler" value="classic"/>
    <property name="debug" value="on"/>
    <property name="debuglevel" value="lines,source,vars"/>

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

    <property name="packages"
              value="javax.*,
                     com.ibm.wsdl.*"/>

    <property name="build.file" value="build.xml"/>

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

    <property name="dist.dir.root" value="./dist"/>
    <property name="dist.dir.name"
              value="${name}-${wsdl4j.version.underscore}"/>
    <property name="dist.dir"
              value="${dist.dir.root}/${dist.dir.name}"/>
    <property name="dist.bin.file"
              value="${dist.dir.root}/${name}-bin-${wsdl4j.version}"/>
    <property name="dist.src.file"
              value="${dist.dir.root}/${name}-src-${wsdl4j.version}"/>

    <property name="change.log.start.date" value="21 March 2003"/>
  </target>

  <!-- =================================================================== -->
  <!-- Prepares the build directory                                        -->
  <!-- =================================================================== -->
  <target name="prepare" depends="init">
    <mkdir dir="${build.dir}"/>

    <available property="junit.present" classname="junit.framework.TestCase"/>

    <uptodate property="javadoc.required"
              targetfile="${build.lib}/${name}.jar">
      <srcfiles dir="${build.dir}" includes="**/*.html"/>
    </uptodate>

    <antcall target="checkDependencies"/>
  </target>

  <!-- =================================================================== -->
  <!-- Warn the user about missing resources                               -->
  <!-- =================================================================== -->
  <target name="checkJUnit" unless="junit.present">
    <echo message="Warning: JUnit dependencies were not resolved."/>
  </target>
  <target name="checkDependencies">
    <antcall target="checkJUnit"/>
  </target>

  <!-- =================================================================== -->
  <!-- Source files to be compiled                                         -->
  <!-- =================================================================== -->
  <patternset id="javac.source.files">
    <include name="javax/wsdl/**/*.java"/>
    <include name="javax/xml/**/*.java"/>
    <include name="com/ibm/wsdl/**/*.java"/>
  </patternset>

  <!-- =================================================================== -->
  <!-- Compiles the source directory                                       -->
  <!-- =================================================================== -->
  <target name="compile" depends="prepare">
    <mkdir dir="${build.dest}"/>
    <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}">
      <patternset refid="javac.source.files"/>
    </javac>

    <mkdir dir="${build.lib}"/>
    <jar jarfile="${build.lib}/${name}.jar" basedir="${build.dest}">
      <exclude name="javax/xml/**"/>

      <manifest>
        <attribute name="Specification-Title" value="JWSDL"/>
        <attribute name="Specification-Version" value="${jwsdl.version}"/>
        <attribute name="Specification-Vendor"
                   value="IBM (Java Community Process)"/>
        <attribute name="Implementation-Title" value="WSDL4J"/>
        <attribute name="Implementation-Version" value="${wsdl4j.version}"/>
        <attribute name="Implementation-Vendor" value="IBM"/>
      </manifest>
    </jar>

    <jar jarfile="${build.lib}/qname.jar" basedir="${build.dest}">
      <include name="javax/xml/**/*.class"/>

      <manifest>
        <attribute name="Specification-Title" value="QName"/>
        <attribute name="Specification-Version" value="${qname.version}"/>
        <attribute name="Implementation-Title" value="WSDL4J"/>
        <attribute name="Implementation-Version" value="${wsdl4j.version}"/>
        <attribute name="Implementation-Vendor" value="IBM"/>
      </manifest>
    </jar>

    <uptodate property="javadoc.required"
              targetfile="${build.lib}/${name}.jar">
      <srcfiles dir="${build.dir}" includes="**/*.html"/>
    </uptodate>
  </target>

  <!-- =================================================================== -->
  <!-- Creates the JWSDL API documentation                                 -->
  <!-- =================================================================== -->
  <target name="jwsdl_docs" depends="prepare">
    <mkdir dir="${build.dir}/jwsdl-api-${jwsdl.version.underscore}"/>
    <javadoc packagenames="javax.*"
             sourcepath="${src.dir}"
             destdir="${build.dir}/jwsdl-api-${jwsdl.version.underscore}"
             author="true"
             version="true"
             use="true"
             windowtitle="JWSDL API"
             doctitle="JWSDL"
             breakiterator="yes"
    />

    <mkdir dir="${dist.dir.root}/"/>
    <zip zipfile="${dist.dir.root}/jwsdl-api-${jwsdl.version}.zip"
         basedir="${build.dir}/">
      <include name="jwsdl-api-${jwsdl.version.underscore}/**"/>
    </zip>
  </target>

  <!-- =================================================================== -->
  <!-- Creates the API documentation                                       -->
  <!-- =================================================================== -->
  <target name="javadocs" depends="prepare">
    <mkdir dir="${build.javadocs}"/>
    <javadoc packagenames="${packages}"
             sourcepath="${src.dir}"
             destdir="${build.javadocs}"
             author="true"
             version="true"
             use="true"
             windowtitle="${Name} API"
             doctitle="${Name}"
             breakiterator="yes"
             bottom="Copyright &#169; ${year} IBM. All Rights Reserved."
    />
  </target>

  <!-- =================================================================== -->
  <!-- Creates the API documentation if necessary                          -->
  <!-- =================================================================== -->
  <target name="javadocsIfRequired" if="javadoc.required" depends="prepare">
    <antcall target="javadocs"/>
  </target>

  <!-- =================================================================== -->
  <!-- Creates the binary distribution                                     -->
  <!-- =================================================================== -->
  <target name="dist" depends="compile, javadocsIfRequired">
    <delete dir="${dist.dir}"/>

    <copy todir="${dist.dir}/docs/api">
      <fileset dir="${build.javadocs}"/>
    </copy>
    <copy todir="${dist.dir}/lib">
      <fileset dir="${build.lib}"/>
    </copy>

    <copy todir="${dist.dir}/docs">
      <fileset dir="${docs.dir}">
        <include name="*.html"/>
      </fileset>
      <filterset>
        <filter token="version" value="${wsdl4j.version.underscore}"/>
      </filterset>
    </copy>

    <copy tofile="${dist.dir}/docs/spec/jsr110-1.2.pdf">
      <fileset dir="${docs.dir}">
        <include name="spec/maint_rel_1.2/jsr110-1.2.pdf"/>
      </fileset>
    </copy>

    <copy file="license.html" tofile="${dist.dir}/license.html"/>
    <copy file="readme.txt" tofile="${dist.dir}/readme.txt"/>

    <!-- ================================================================= -->
    <!-- Produces the zip file                                             -->
    <!-- ================================================================= -->
    <zip zipfile="${dist.bin.file}.zip" basedir="${dist.dir.root}/">
      <include name="${dist.dir.name}/**"/>
    </zip>
  </target>

  <!-- =================================================================== -->
  <!-- Creates the source distribution                                     -->
  <!-- =================================================================== -->
  <target name="srcdist" depends="init">
    <delete dir="${dist.dir}"/>

    <copy todir="${dist.dir}/src">
      <fileset dir="${src.dir}">
        <patternset refid="javac.source.files"/>
      </fileset>
    </copy>

    <copy file="license.html" tofile="${dist.dir}/license.html"/>
    <copy file="${build.file}" tofile="${dist.dir}/${build.file}"/>

    <!-- ================================================================= -->
    <!-- Produces the zip file                                             -->
    <!-- ================================================================= -->
    <zip zipfile="${dist.src.file}.zip" basedir="${dist.dir.root}/">
      <include name="${dist.dir.name}/**"/>
    </zip>
  </target>

  <!-- =================================================================== -->
  <!-- Cleans everything                                                   -->
  <!-- =================================================================== -->
  <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    <delete dir="${dist.dir.root}"/>
  </target>

  <!-- =================================================================== -->
  <!-- Run's WSDL4J through the JWSDL TCK                                  -->
  <!-- =================================================================== -->
  <target name="test" depends="compile" if="junit.present">
    <junit printsummary="on">
      <sysproperty key="jwsdltck_home" value="./test"/>
      <sysproperty key="javax.wsdl.factory.WSDLFactoryCandidate"
                   value="com.ibm.wsdl.factory.WSDLFactoryImpl"/>

      <classpath>
        <pathelement location="${build.lib}/${name}.jar"/>
        <pathelement location="${build.lib}/qname.jar"/>
        <pathelement location="test/lib/jwsdltck.jar"/>
      </classpath>

      <formatter type="plain"/>

      <test name="com.ibm.wsdl.tck.JWSDLTestSuite"
            todir="./test"/>
    </junit>
  </target>

  <!-- =================================================================== -->
  <!-- Creates the Change Log                                              -->
  <!-- =================================================================== -->
  <target name="changelog" depends="init">
    <mkdir dir="${build.dir}"/>

    <cvschangelog destfile="${build.dir}/changelog.xml"
                  start="${change.log.start.date}">
      <user displayname="Jeremy Hughes"
            userid="hughesjp"/>
    </cvschangelog>

    <style in="${build.dir}/changelog.xml"
           out="${build.dir}/changelog.html"
           style="${docs.dir}/cvschangelog.xsl">
      <param name="title" expression="WSDL4J ChangeLog"/>
      <param name="module" expression="wsdl4j"/>
      <param name="cvsweb"
             expression="http://wsdl4j.cvs.sourceforge.net/wsdl4j/"/>
      <param name="date" expression="${TODAY}"/>
    </style>
  </target>
</project>