Project

Profile

Help

How to connect?
Download (45.8 KB) Statistics
| Branch: | Tag: | Revision:

he / latest9.5 / build / build-j.xml @ 6717e3bc

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<project basedir="." default="all" name="Saxon for the Java platform"
4
         xmlns:dn="antlib:org.apache.ant.dotnet">
5
    
6
    <!-- Build file for Saxon on the Java platform. This build file is designed to be imported
7
         from build.xml -->
8
    
9
        <import file="build-constants.xml"/>                           
10
    
11
        <!-- Import of private Saxonica build file for signing the issued JARs (task private-signjars). -->
12
        <!-- This can be replaced by a reference to different signing tool -->
13
        
14
        <import file="build-j-signer.xml"/>                           
15
    
16
    
17
    <!-- directory holding Java test drivers -->
18
    <property name="drivers-j.dir" value="../MyJava/testcode/test"/>                    
19
                    
20

    
21
    <taskdef resource="com/igormaznitsa/jcp/ant/tasks.properties" classpath="../lib/jcp-5.3.2.jar"/>
22
    <!-- following locations are relative to the build file -->
23
        
24
    <property name="services.dir" value="services"/>
25
    <property name="temp-src-j.dir" value="${temp.dir}/j/source"/>
26
    <property name="temp-src-prep-hej.dir" value="${temp.dir}/preprocessed/hej/source"/>
27
    <property name="temp-src-prep-eej.dir" value="${temp.dir}/preprocessed/eej/source"/>
28
    <property name="temp-src-prep-pej.dir" value="${temp.dir}/preprocessed/pej/source"/>
29
    <property name="temp-src-prep-test.dir" value="${temp.dir}/preprocessed/testdriver"/>
30
    <property name="classes-j.dir" value="${temp.dir}/j/classes"/>
31
    
32
    <property name="jar-signer-certificate" value="codesigner.p12"/> 
33

    
34
    <!-- following locations are relative to the destination directory -->
35
                
36
    <property name="build-hej.dir" value="${product.dir}/hej"/> 
37
    <property name="build-pej.dir" value="${product.dir}/pej"/>  
38
    <property name="build-eej.dir" value="${product.dir}/eej"/> 
39

    
40
    <property name="javadoc.dir" value="${build-resources.dir}/doc/javadoc"/>   
41
    
42
    
43
    <path id="classpath-j">
44
        <fileset dir="${lib.dir}">
45
            <include name="*.jar"/>
46
        </fileset>
47
    </path>
48
        
49
     
50
    <path id="classpath-samples">
51
        <fileset dir="${lib.dir}">
52
            <include name="*.jar"/>
53
        </fileset>
54
        <fileset dir="${build-eej.dir}">
55
            <include name="*.jar"/>
56
        </fileset>
57
        <!-- Substitute build-hej.dir if there is no requirement to compile the sample applications
58
             that depend on Saxon-EE -->
59
    </path> 
60

    
61

    
62
    <target name="create-meta-inf" description="Create contents of META-INF/services files">    
63
        
64
        <!-- given the Ant 1.7.0 bug, create the services files here for copying into the JARS -->
65
        <mkdir dir="${services.dir}/saxon9he/META-INF/services"/>
66
        <echo file="${services.dir}/saxon9he/META-INF/services/javax.xml.transform.TransformerFactory"
67
              message="net.sf.saxon.TransformerFactoryImpl"/>
68
        <mkdir dir="${services.dir}/saxon9he/META-INF/services"/>
69
        <!-- The peculiar format of these files is due to the bug described at
70
             http://markmail.org/message/obgfqbnrkuhzl6wl. The correct format is
71
             just to use the first line: this works for JDK 1.6. But JDK 1.5 incorrectly
72
             expects a properties file, in the form of the subsequent line. The combination
73
             works with both Java releases -->
74
        <!-- See bug 1944. The next 9.5 maintenance release will use the JDK 1.6 format;
75
             the next full release will drop the XPath services data entirely -->
76
        <echo file="${services.dir}/saxon9he/META-INF/services/javax.xml.xpath.XPathFactory"
77
>net.sf.saxon.xpath.XPathFactoryImpl
78
        </echo>
79
        
80
        <!-- dropped from the above:
81
            http\://java.sun.com/jaxp/xpath/dom:    net.sf.saxon.xpath.XPathFactoryImpl
82
            http\://saxon.sf.net/jaxp/xpath/om:     net.sf.saxon.xpath.XPathFactoryImpl
83
        -->
84

    
85
        <mkdir dir="${services.dir}/saxon9pe/META-INF/services"/>
86
        <echo file="${services.dir}/saxon9pe/META-INF/services/javax.xml.transform.TransformerFactory"
87
              message="com.saxonica.config.ProfessionalTransformerFactory"/> 
88
        <echo file="${services.dir}/saxon9pe/META-INF/services/javax.xml.xpath.XPathFactory"
89
>com.saxonica.config.ProfessionalXPathFactory
90
        </echo>
91
        
92
        <!-- dropped from the above:
93
            http\://java.sun.com/jaxp/xpath/dom:    com.saxonica.config.ProfessionalXPathFactory
94
            http\://saxon.sf.net/jaxp/xpath/om:     com.saxonica.config.ProfessionalXPathFactory
95
            http\://www.xom.nu/jaxp/xpath/xom:      com.saxonica.config.ProfessionalXPathFactory
96
            http\://jdom.org/jaxp/xpath/jdom:       com.saxonica.config.ProfessionalXPathFactory
97
            http\://www.dom4j.org/jaxp/xpath/dom4j: com.saxonica.config.ProfessionalXPathFactory
98
            -->
99

    
100
               
101
        <mkdir dir="${services.dir}/saxon9ee/META-INF/services"/>
102
        <echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.transform.TransformerFactory"
103
              message="com.saxonica.config.EnterpriseTransformerFactory"/>
104
        <echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.xpath.XPathFactory"
105
>com.saxonica.config.EnterpriseXPathFactory
106
        </echo>
107
        <!-- Dropped from the above:
108
            http\://java.sun.com/jaxp/xpath/dom:    com.saxonica.config.EnterpriseXPathFactory
109
            http\://saxon.sf.net/jaxp/xpath/om:     com.saxonica.config.EnterpriseXPathFactory
110
            http\://www.xom.nu/jaxp/xpath/xom:      com.saxonica.config.EnterpriseXPathFactory
111
            http\://jdom.org/jaxp/xpath/jdom:       com.saxonica.config.EnterpriseXPathFactory
112
            http\://www.dom4j.org/jaxp/xpath/dom4j: com.saxonica.config.EnterpriseXPathFactory
113
            -->
114
<echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.validation.SchemaFactory"
115
>com.saxonica.jaxp.SchemaFactoryImpl</echo>     
116
       <!--<echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.validation.SchemaFactory"
117
>com.saxonica.jaxp.SchemaFactoryImpl
118
http\://www.w3.org/2001/XMLSchema: com.saxonica.jaxp.SchemaFactoryImpl
119
http\://www.w3.org/XML/XMLSchema: com.saxonica.jaxp.SchemaFactoryImpl
120
http\://www.w3.org/XML/XMLSchema/v1.0: com.saxonica.jaxp.SchemaFactoryImpl
121
http\://www.w3.org/XML/XMLSchema/v1.1: com.saxonica.jaxp.SchemaFactoryImpl
122
</echo>  -->       
123
    </target>                                  
124

    
125

    
126
    
127
   <!-- <target name="create-edition-properties-j" description="Create the edition.properties files for the three editions of Saxon on Java">
128
        <mkdir dir="${classes-j.dir}"/>
129
        <mkdir dir="${classes-j.dir}/he"/>
130
        <mkdir dir="${classes-j.dir}/pe"/>
131
        <mkdir dir="${classes-j.dir}/ee"/>
132
        <echo file="${classes-j.dir}/he/edition.properties"
133
>config=net.sf.saxon.Configuration
134
platform=net.sf.saxon.java.JavaPlatform
135
</echo>
136
        <echo file="${classes-j.dir}/pe/edition.properties"
137
>config=com.saxonica.config.ProfessionalConfiguration
138
platform=com.saxonica.config.JavaPlatformPE
139
</echo>
140
        <echo file="${classes-j.dir}/ee/edition.properties"
141
>config=com.saxonica.config.EnterpriseConfiguration
142
platform=com.saxonica.config.JavaPlatformPE
143
</echo>   
144
    </target>    -->
145

    
146
    <target name="prepare-j" depends="create-meta-inf">              
147
    </target>       
148

    
149

    
150

    
151
    <target name="copysource-development-j" description="Copy relevant source files from development directory">
152
        <copy todir="${temp-src-j.dir}">
153
          <!--
154
    <target name="prepare-j" depends="create-meta-inf"/><fileset dir="${source-hej.dir}">
155
            <include name="net/sf/saxon/**/*.java"/>
156
            <include name="javax/xml/xquery/*.java"/>
157
            <exclude name="**/dotnet/**"/>
158
            <include name="net/sf/saxon/**/package.html"/>
159
          </fileset>
160
          <fileset dir="${source-eej.dir}">
161
            <include name="com/saxonica/**/*.java"/>
162
            <exclude name="com/saxonica/config/DotNetExtensionFunctionFactory.java"/>
163
            <exclude name="com/saxonica/config/DotNetExtensionLibrary.java"/>
164
            <exclude name="com/saxonica/config/DotNetPlatformPE.java"/>
165
            <exclude name="com/saxonica/expr/DotNetExtensionFunctionCall.java"/>
166
            <include name="com/saxonica/**/package.html"/>
167
          </fileset>                                -->
168
          <fileset dir="${development-data.dir}">
169
            <include name="**/*.*"/>
170
          </fileset>          
171
        </copy>            
172
    </target>
173

    
174

    
175

    
176
    <target name="copysrc-hej">
177
        <mkdir dir="${temp-src-j.dir}/hej"/>
178
        <copy todir="${temp-src-j.dir}/hej">
179
          <fileset dir="${source-hej.dir}">
180
            <include name="net/sf/saxon/**/*.java"/>
181
            <include name="javax/xml/xquery/*.java"/>
182
            <exclude name="**/dotnet/**"/>
183
            <include name="net/sf/saxon/**/package.html"/>
184
          </fileset>
185
          <fileset dir="${development-data.dir}">
186
            <include name="**/*.*"/>
187
          </fileset>
188
        </copy>
189
    </target>
190

    
191
    <target name="copysrc-pej">
192
        <mkdir dir="${temp-src-j.dir}/pej"/>
193
        <copy todir="${temp-src-j.dir}/pej">
194
          <fileset dir="${source-hej.dir}">
195
            <include name="net/sf/saxon/**/*.java"/>
196
            <include name="javax/xml/xquery/*.java"/>
197
            <exclude name="**/dotnet/**"/>
198
            <exclude name="net/sf/saxon/option/expath/zip/**"/>  
199
            <include name="net/sf/saxon/**/package.html"/>
200
            <exclude name="net/sf/saxon/option/expath/zip/**" />                
201
          </fileset>
202
          <fileset dir="${source-eej.dir}">
203
            <include name="com/saxonica/**/*.java"/>
204
            <exclude name="com/saxonica/testdriver/**/*.java"/>
205
            <exclude name="com/saxonica/jaxp/*.java"/>
206
            <exclude name="com/saxonica/config/EnterpriseConfiguration.java" />
207
            <exclude name="com/saxonica/config/ee/**" />
208
            <exclude name="com/saxonica/stream/**" />
209
            <exclude name="com/saxonica/schema/**" />
210
            <exclude name="com/saxonica/bytecode/**" />
211
            <exclude name="com/saxonica/expr/ee/**" />
212
            <exclude name="com/saxonica/update/**/*.java"/>
213
            <exclude name="com/saxonica/validate/**/*.java"/>
214
            <exclude name="com/saxonica/expr/CastToUnion.java"/>
215
            <exclude name="com/saxonica/expr/CastableToUnion.java"/>
216
            <exclude name="com/saxonica/expr/DotNetExtensionFunctionCall.java"/>
217
            <exclude name="com/saxonica/config/DotNetExtensionLibrary.java"/>
218
            <exclude name="com/saxonica/config/DotNetExtensionFunctionFactory.java"/>
219
            <exclude name="com/saxonica/config/DotNetPlatformPE.java"/>
220
            <exclude name="com/saxonica/Validate.java"/>
221
            <exclude name="com/saxonica/config/EnterpriseTransformerFactory.java"/>
222
            <exclude name="com/saxonica/config/EnterpriseXPathFactory.java"/>
223
            <exclude name="com/saxonica/config/DynamicLoaderEE.java"/>
224
            <exclude name="com/saxonica/config/StandardSchemaResolver.java"/>
225
            <exclude name="com/saxonica/jaxp/SchemaFactoryImpl11.java"/>
226
          </fileset>
227
          <fileset dir="${development-data.dir}">
228
            <include name="**/*.*"/>
229
          </fileset>
230
        </copy>
231
    </target>
232

    
233
   <target name="copysrc-eej">
234
        <mkdir dir="${temp-src-j.dir}/eej"/>
235
        <copy todir="${temp-src-j.dir}/eej">
236
          <fileset dir="${source-hej.dir}">
237
            <include name="net/sf/saxon/**/*.java"/>
238
            <include name="javax/xml/xquery/*.java"/>
239
            <exclude name="**/dotnet/**"/>
240
            <exclude name="net/sf/saxon/option/expath/zip/**"/>  
241
            <include name="net/sf/saxon/**/package.html"/>
242
            <exclude name="net/sf/saxon/option/expath/zip/**" />                
243
          </fileset>
244
          <fileset dir="${source-eej.dir}">
245
            <include name="com/saxonica/**/*.java"/>
246
            <exclude name="com/saxonica/testdriver/**/*.java"/>
247
            <!--<exclude name="com/saxonica/jaxp/*.java"/>-->
248
            <!--<exclude name="com/saxonica/config/pe/**" />-->
249
            <!--<exclude name="com/saxonica/config/DotNetVerifier.java"/>-->
250
            <exclude name="com/saxonica/config/DotNetExtensionFunctionFactory.java"/>
251
            <exclude name="com/saxonica/config/DotNetExtensionLibrary.java"/>
252
            <exclude name="com/saxonica/config/DotNetPlatformPE.java"/>
253
            <exclude name="com/saxonica/expr/DotNetExtensionFunctionCall.java"/>
254
            <include name="com/saxonica/**/package.html"/>
255
          </fileset>
256
          <fileset dir="${development-data.dir}">
257
            <include name="**/*.*"/>
258
          </fileset>
259
        </copy>
260
    </target>
261

    
262
    <target name="preprocess-hej" depends="copysrc-hej">
263
        <preprocess
264
            source="${temp-src-j.dir}/hej"
265
            destination="${temp-src-prep-hej.dir}"
266
            verbose="true">
267
        <global name="EE" value="false"/>
268
        <global name="PE" value="false"/>
269
        <global name="DOTNET" value="false"/>
270
       </preprocess>
271
       <replaceregexp match="import com\.saxonica(.*)" replace="" flags="g">
272
            <fileset dir="${temp-src-prep-hej.dir}"  includes="**/*.java" />
273
        </replaceregexp>
274
       <replaceregexp file="${temp-src-prep-hej.dir}/net/sf/saxon/Configuration.java" match="import net\.sf\.saxon\.dotnet\.DotNetPlatform(.*)" replace="" byline="yes" />
275
       <replaceregexp file="${temp-src-prep-hej.dir}//net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.DotNetPlatformPE(.*)" replace="" byline="yes" />
276
       <replaceregexp file="${temp-src-prep-hej.dir}/net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.EnterpriseConfiguration(.*)" replace="" byline="yes" />
277
        <replaceregexp file="${temp-src-prep-hej.dir}/net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.ProfessionalConfiguration(.*)" replace="" byline="yes" />
278
       <replaceregexp file="${temp-src-prep-hej.dir}/net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.JavaPlatformPE(.*)" replace="" byline="yes" />
279
        <echo>Preprocessing hej complete!</echo>
280
    </target>
281

    
282
    <target name="preprocess-android" depends="copysrc-eej">
283
        <preprocess
284
            source="${temp-src-j.dir}/eej"
285
            destination="${temp-src-prep-hej.dir}"
286
            verbose="true">
287
            <global name="HOF" value="true"/>
288
            <global name="STREAM" value="true"/>
289
       </preprocess>
290
        <replaceregexp match="import com\.saxonica\.bytecode(.*)" replace="" byline="yes">
291
            <fileset dir="${temp-src-prep-hej.dir}\net" includes="**/*.java" />
292
        </replaceregexp>
293
        <replaceregexp match="import com\.saxonica\.bytecode(.*)" replace="" byline="yes">
294
            <fileset dir="${temp-src-prep-hej.dir}\com" includes="**/*.java" />
295
        </replaceregexp>
296
         <delete dir="${temp-src-prep-hej.dir}/com/saxonica/bytecode" />
297
        <delete dir="${temp-src-prep-hej.dir}/com/saxonica/testdriver" />
298
       <echo>Preprocessing Android complete!</echo>
299
    </target>
300

    
301
    <target name="preprocess-pej" depends="copysrc-pej">
302
        <preprocess
303
            source="${temp-src-j.dir}/pej"
304
            destination="${temp-src-prep-pej.dir}"
305
            verbose="true">
306
        <global name="DOTNET" value="false"/>
307
        <global name="PE" value="true"/>
308
        <global name="HOF" value="true"/>
309
        <global name="EE" value="false"/>
310
       </preprocess>
311
       <!-- <replaceregexp file="${temp-src-prep-pej.dir}/net/sf/saxon/Configuration.java" match="import net\.sf\.saxon\.java\.JavaPlatform(.*)" replace="" byline="yes" /> -->
312
       <replaceregexp file="${temp-src-prep-pej.dir}/net/sf/saxon/Configuration.java" match="import net\.sf\.saxon\.dotnet\.DotNetPlatform(.*)" replace="" byline="yes" />
313
       <replaceregexp file="${temp-src-prep-pej.dir}/net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.DotNetPlatformPE(.*)" replace="" byline="yes" />
314
       <replaceregexp file="${temp-src-prep-pej.dir}/net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.EnterpriseConfiguration(.*)" replace="" byline="yes" />
315
       <replaceregexp file="${temp-src-prep-pej.dir}/net/sf/saxon/functions/ConstructorFunctionLibrary.java" match="import com\.saxonica\.expr.CastToUnion(.*)" replace="" byline="yes" />
316

    
317
       <replaceregexp match="import com\.saxonica\.bytecode(.*)" replace="" flags="g"  byline="true">
318
             <fileset dir="${temp-src-prep-pej.dir}"  includes="**/*.java" />
319
       </replaceregexp>
320
       <replaceregexp match="import com\.saxonica\.config\.ee(.*)" replace="" flags="g">
321
             <fileset dir="${temp-src-prep-pej.dir}"  includes="**/*.java" />
322
       </replaceregexp>
323
        <replaceregexp match="import com\.saxonica\.schema(.*)" replace="" flags="g">
324
             <fileset dir="${temp-src-prep-pej.dir}" includes="**/*.java" />
325
       </replaceregexp>
326
        <replaceregexp match="import com\.saxonica\.stream(.*)" replace="" flags="g">
327
             <fileset dir="${temp-src-prep-pej.dir}" includes="**/*.java" />
328
       </replaceregexp>
329
        <replaceregexp match="import com\.saxonica\.update(.*)" replace="" flags="g">
330
             <fileset dir="${temp-src-prep-pej.dir}" includes="**/*.java" />
331
       </replaceregexp>
332
        <replaceregexp match="import com\.saxonica\.expr\.ee(.*)" replace="" flags="g">
333
             <fileset dir="${temp-src-prep-pej.dir}" includes="**/*.java" />
334
       </replaceregexp>
335
       <echo>Preprocessing eej complete!</echo>
336
    </target>
337

    
338
    <target name="preprocess-eej" depends="copysrc-eej">
339
        <preprocess
340
            source="${temp-src-j.dir}/eej"
341
            destination="${temp-src-prep-eej.dir}"
342
            verbose="true">
343
        <global name="EE" value="true"/>
344
        <global name="PE" value="true"/>
345
       <global name="STREAM" value="true"/>
346
       <global name="HOF" value="true"/>
347
       <global name="BYTECODE" value="true"/>
348
       <global name="SCHEMA" value="true"/>
349
        <global name="DOTNET" value="false"/>
350
       </preprocess>
351
       <replaceregexp file="${temp-src-prep-eej.dir}/net/sf/saxon/Configuration.java" match="import net\.sf\.saxon\.dotnet\.DotNetPlatform(.*)" replace="" byline="yes" />
352
       <replaceregexp file="${temp-src-prep-eej.dir}/net/sf/saxon/Configuration.java" match="import com\.saxonica\.config\.DotNetPlatform(.*)" replace="" byline="yes" />
353
             <!--<replaceregexp match="import com\.saxonica\.bytecode(.*)" replace="" flags="g"  byline="true">
354
             <fileset dir="${temp-src-prep-eej.dir}"  includes="**/*.java" />
355
       </replaceregexp>   -->
356
       <echo>Preprocessing eej complete!</echo>
357
    </target>
358
        
359
    <target name="compile-hej" description="Compile Saxon classes for the Java opensource product."
360
            depends="copysource-development-j, preprocess-hej">
361
        <mkdir dir="${classes-j.dir}"/>
362

    
363
        <javac debug="${build.debug}" debuglevel="${build.debuglevel}" 
364
            deprecation="${build.deprecation}" destdir="${classes-j.dir}"
365
            optimize="${build.optimize}" srcdir="${temp-src-prep-hej.dir}" source="${build.compiler.source}"
366
            target="${build.compiler.target}"
367
            fork="true"
368
            memoryinitialsize="256m"
369
            memorymaximumsize="256m">
370

    
371
            <include name="net/**"/>
372
            <exclude name="net/sf/saxon/option/**/*.java"/>
373
            <include name="javax/xml/xquery/**"/>
374
            <exclude name="com/saxonica/**"/>
375
            
376
            <!--<exclude name="**/dotnet/**"/>-->
377
            <!--<exclude name="com/saxonica/validate/DotNetVerifier.java"/>-->
378
            <classpath>
379
                <path refid="classpath-j"/>
380
            </classpath>
381
        </javac>
382
    </target>
383

    
384
        <target name="compile-eej" description="Compile Saxon classes for the Java enterprise edition."
385
            depends="copysource-development-j, preprocess-eej">
386
        <mkdir dir="${classes-j.dir}"/>
387

    
388
        <javac debug="${build.debug}" debuglevel="${build.debuglevel}"
389
            deprecation="${build.deprecation}" destdir="${classes-j.dir}"
390
            optimize="${build.optimize}" srcdir="${temp-src-prep-eej.dir}" source="${build.compiler.source}"
391
            target="${build.compiler.target}"
392
            fork="true"
393
            memoryinitialsize="256m"
394
            memorymaximumsize="256m">
395

    
396
            <include name="net/**"/>
397
            <include name="javax/xml/xquery/**"/>
398
            <include name="com/saxonica/**"/>
399

    
400
            <!--<exclude name="**/dotnet/**"/>-->
401
            <!--<exclude name="com/saxonica/validate/DotNetVerifier.java"/>-->
402
            <classpath>
403
                <path refid="classpath-j"/>
404
            </classpath>
405
        </javac>
406
    </target>
407

    
408
        <target name="compile-pej" description="Compile Saxon classes for the Java professional edition."
409
            depends="copysource-development-j, preprocess-pej">
410
        <mkdir dir="${classes-j.dir}"/>
411

    
412
        <javac debug="${build.debug}" debuglevel="${build.debuglevel}"
413
            deprecation="${build.deprecation}" destdir="${classes-j.dir}"
414
            optimize="${build.optimize}" srcdir="${temp-src-prep-pej.dir}" source="${build.compiler.source}"
415
            target="${build.compiler.target}"
416
            fork="true"
417
            memoryinitialsize="256m"
418
            memorymaximumsize="256m">
419

    
420
            <include name="net/**"/>
421
            <include name="javax/xml/xquery/**"/>
422
            <include name="com/saxonica/**"/>
423

    
424
            <!--<exclude name="**/dotnet/**"/>-->
425
            <!--<exclude name="com/saxonica/validate/DotNetVerifier.java"/>-->
426
            <classpath>
427
                <path refid="classpath-j"/>
428
            </classpath>
429
        </javac>
430
    </target>
431

    
432
<target name="unpack">
433
    <!-- saxon9-unpack.jar -->
434
    <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9-unpack.jar" update="true">
435
        <include name="com/saxonica/ptree/PTreeReader.class"/>
436
        <include name="com/saxonica/ptree/PTreeReader$PTreeException.class"/>
437
        <include name="com/saxonica/ptree/TextMangler.class"/>
438
        <include name="com/saxonica/ptree/TextObfuscator.class"/>
439
        <include name="com/saxonica/ptree/PackageURIResolver.class"/>
440
    </jar>
441
</target>
442
          
443
    <target name="jar-hej" description="Create Saxon-HE jar files for Java" depends="compile-hej, unpack">
444
        <mkdir dir="${product.dir}/hej"/>
445
        <mkdir dir="${classes-j.dir}/he"/>
446

    
447
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9he.jar">
448
            <include name="net/**/*.class"/>
449
            <exclude name="net/sf/saxon/option/**/*.class"/>
450
            <!--<exclude name="**/javax/**/*.class"/>
451
            <exclude name="**/xpath/**/*.class"/>
452
            <exclude name="**/xqj/**/*.class"/>-->
453
            <include name="javax/xml/xquery/*.class"/>
454
            <include name="META-INF/**"/>
455
            <manifest>
456
                <attribute name="Project-Name" value="Saxon-HE"/>
457
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
458
            </manifest>
459
            <metainf dir="${services.dir}/saxon9he/META-INF"/>
460
            <!--<metainf dir="${services.dir}/saxon9-xpath/META-INF"/>-->
461
            <!--
462
            <service type="javax.xml.transform.TransformerFactory"
463
                provider="net.sf.saxon.TransformerFactoryImpl"/>
464
            -->    
465
        </jar>
466
        
467
        <!-- add edition.properties -->
468
        <!-- <jar basedir="${classes-j.dir}/he" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9he.jar" update="true">
469
            <include name="edition.properties"/>
470
        </jar> -->
471
        
472
        <!-- add data files -->
473
        <jar basedir="${development-data.dir}" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9he.jar" update="true">
474
            <include name="**"/>
475
        </jar>
476
        
477
        <!-- saxon9-unpack.jar -->
478
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9-unpack.jar" update="true">
479
            <include name="com/saxonica/ptree/PTreeReader.class"/>
480
            <include name="com/saxonica/ptree/PTreeReader$PTreeException.class"/>
481
            <include name="com/saxonica/ptree/TextMangler.class"/>
482
            <include name="com/saxonica/ptree/TextObfuscator.class"/>
483
            <include name="com/saxonica/ptree/PackageURIResolver.class"/>
484
        </jar>
485

    
486
        
487

    
488
    </target>
489
    
490
    <target name="jar-pej" description="Create Saxon-PE jar files for Java" depends="compile-pej, unpack">
491
        <mkdir dir="${product.dir}/pej"/>
492
        <mkdir dir="${classes-j.dir}/pe"/>
493
        
494
        <copy todir="${product.dir}/pej">
495
          <fileset dir="${product.dir}/hej">
496
            <include name="saxon9-unpack.jar"/>
497
          </fileset>
498
        </copy> 
499
              
500
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9pe.jar">
501
            <include name="net/**/*.class"/>
502
            <exclude name="net/sf/saxon/ant/*.class"/>
503
            <exclude name="**/sql/**/*.class"/>
504
            <include name="com/saxonica/**/*.class"/>
505
            <exclude name="com/saxonica/bytecode/**/*.class"/>
506
            <exclude name="com/saxonica/fsa/**/*.class"/>
507
            <exclude name="com/saxonica/jaxp/**/**/*.class"/>
508
            <exclude name="com/saxonica/schema/**/*.class"/>
509
            <exclude name="com/saxonica/sdoc/**/*.class"/>
510
            <exclude name="com/saxonica/stream/**/*.class"/>
511
            <exclude name="com/saxonica/update/**/*.class"/>
512
            <exclude name="com/saxonica/validate/**/*.class"/>
513
            <exclude name="com/saxonica/expr/CastToUnion.class"/>
514
            <exclude name="com/saxonica/expr/CastableToUnion.class"/>
515
            <exclude name="com/saxonica/expr/CastToList.class"/>
516
            <exclude name="com/saxonica/expr/CastableToList.class"/>
517
            <exclude name="com/saxonica/Validate.class"/>
518
            <exclude name="com/saxonica/CompileStylesheet.class"/>
519
            <exclude name="com/saxonica/CompileStylesheet$TracingObjectOutputStream.class"/>
520
            <exclude name="com/saxonica/config/EnterpriseConfiguration.class"/>
521
            <exclude name="com/saxonica/config/EnterpriseConfiguration$SurrogateSchema.class"/>
522
            <exclude name="com/saxonica/config/EnterpriseTransformerFactory.class"/>
523
            <exclude name="com/saxonica/config/EnterpriseXPathFactory.class"/>
524
            <exclude name="com/saxonica/extra/StaticQueryContextEE.class"/>
525
            <exclude name="com/saxonica/extra/OptimizerEE.class"/>
526
            <exclude name="com/saxonica/extra/GeneralComparisonEE.class"/>
527
            <exclude name="com/saxonica/extra/MultithreadedContextMappingIterator.class"/>
528
            <exclude name="com/saxonica/extra/MultithreadedForEach.class"/>
529
            <include name="javax/xml/xquery/*.class"/>
530
            <manifest>
531
                <attribute name="Project-Name" value="Saxon-PE"/>
532
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
533
            </manifest>
534
            <metainf dir="${services.dir}/saxon9pe/META-INF"/>
535

    
536
        </jar>
537
        <!-- <jar basedir="${classes-j.dir}/pe" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9pe.jar" update="true">
538
            <include name="edition.properties"/>
539
        </jar>  -->
540
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9-sql.jar">
541
            <include name="net/sf/saxon/option/sql/*.class"/>
542
        </jar>
543
        <jar basedir="${development-data.dir}" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9pe.jar" update="true">
544
            <include name="**"/>
545
        </jar>
546

    
547
    </target>
548
    
549
    <target name="jar-eej" description="Create Saxon-EE jar files for Java" depends="compile-eej, unpack">
550
        <mkdir dir="${product.dir}/eej"/>
551
        <mkdir dir="${classes-j.dir}/ee"/>
552
        
553
        <copy todir="${product.dir}/eej">
554
          <fileset dir="${product.dir}/pej">
555
            <include name="saxon9-sql.jar"/>
556
            <include name="saxon9-unpack.jar"/>
557
          </fileset>
558
        </copy>
559
        
560
        <!-- Build EEJ using jarjar to rename the ASM classes into a different package name, to allow coexistence with
561
             other ASM versions -->
562
        
563
        <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="../lib/jarjar-1.1.jar"/>
564
        <jarjar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar">
565
            <include name="net/**/*.class"/>
566
            <exclude name="net/sf/saxon/ant/*.class"/>
567
            <exclude name="**/sql/**/*.class"/>
568
            <include name="com/saxonica/**/*.class"/>
569
            <include name="javax/xml/xquery/*.class"/>
570
            <rule pattern="org.objectweb.**" result="com.saxonica.objectweb.@1"/>
571
            <manifest>
572
                <attribute name="Project-Name" value="Saxon-EE"/>
573
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
574
            </manifest>
575
            <metainf dir="${services.dir}/saxon9ee/META-INF"/> 
576
        <!-- </jar> -->
577
        </jarjar>
578
        <!-- <jar compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar" update="true"> -->
579
        <jarjar compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar" update="true">
580
            <zipfileset src="${lib.dir}/asm-3.3.1.jar"/>
581
            <zipfileset src="${lib.dir}/asm-analysis-3.3.1.jar"/>
582
            <zipfileset src="${lib.dir}/asm-commons-3.3.1.jar"/>
583
            <zipfileset src="${lib.dir}/asm-tree-3.3.1.jar"/>
584
            <zipfileset src="${lib.dir}/asm-util-3.3.1.jar"/>
585
            <rule pattern="org.objectweb.**" result="com.saxonica.objectweb.@1"/>
586
        </jarjar>
587
                  
588
        <!--<jar basedir="${classes-j.dir}/ee" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar" update="true">
589
            <include name="edition.properties"/>
590
        </jar>      -->
591
        <jar basedir="${development-data.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar" update="true">
592
            <include name="**"/>
593
        </jar>
594

    
595
    </target>
596
    
597
    <target name="samples-j" description="Copy and Compile Java Samples"
598
                                    depends="jar-eej, samples-common">
599
      <mkdir dir="${product.dir}/resources/samples/java"/>
600
      <mkdir dir="${product.dir}/resources/samples/java/classes"/>
601
      <copy todir="${product.dir}/resources/samples/java">
602
        <fileset dir="${samples.dir}/java">
603
          <include name="ApplyXPathJAXP.java"/>
604
          <include name="ExampleContentHandler.java"/>
605
          <include name="JDOMExample.java"/>
606
          <include name="PullExamples.java"/>
607
          <include name="QueryAPIExamples.java"/>
608
          <include name="QuickValidator.java"/>
609
          <include name="S9APIExamples.java"/>
610
          <include name="SaxonServlet.java"/>
611
          <include name="SaxonSAServlet.java"/>
612
          <include name="SchemaValidatorExample.java"/>
613
          <include name="SchemaValidatorHandlerExample.java"/>
614
          <include name="TraxExamples.java"/>
615
          <include name="XMarkBenchmark.java"/>
616
          <include name="XPathExample.java"/>
617
          <include name="XPathExampleDOM.java"/>
618
          <include name="XPathExampleSA.java"/>
619
          <include name="XPathExampleServlet.java"/>
620
          <include name="XQJExamples.java"/>
621
        </fileset>
622
      </copy>
623
        <javac debug="true" debuglevel="${build.debuglevel}" 
624
                              destdir="${product.dir}/resources/samples/java/classes"
625
            srcdir="${product.dir}/resources/samples/java" 
626
            source="${build.compiler.source}"
627
            target="${build.compiler.target}"
628
            includeantruntime="false">
629
        <include name="*.java"/>    
630
        <classpath>
631
            <path refid="classpath-samples"/>
632
        </classpath>
633
      </javac>            
634
    </target>
635
    
636
    <target name="preprocess-testdriver-j">
637
        <mkdir dir="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver"/>
638
        <mkdir dir="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver"/>
639
        <mkdir dir="${temp-src-prep-test.dir}/eej/com/saxonica/testdriver"/>
640
        <copy todir="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver">
641
            <fileset dir="${source-eej.dir}/com/saxonica/testdriver">
642
                <exclude name="com/saxonica/testdriver/XQueryTestSuiteDriver.java"/> 
643
                <exclude name="com/saxonica/testdriver/XsltTestSuiteDriver.java"/>
644
                <exclude name="com/saxonica/testdriver/XQTSModuleURIResolver.java"/> 
645
                <exclude name="com/saxonica/testdriver/XQTSCollectionURIResolver.java"/> 
646
                <exclude name="com/saxonica/testdriver/SchemaTestSuiteDriver.java"/> 
647
            </fileset>
648
        </copy>
649
        
650
        <copy todir="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver">
651
            <fileset dir="${source-eej.dir}/com/saxonica/testdriver"> 
652
                <exclude name="com/saxonica/testdriver/XsltTestSuiteDriver.java"/>
653
                <exclude name="com/saxonica/testdriver/XQTSModuleURIResolver.java"/> 
654
                <exclude name="com/saxonica/testdriver/XQTSCollectionURIResolver.java"/> 
655
                <exclude name="com/saxonica/testdriver/SchemaTestSuiteDriver.java"/> 
656
            </fileset>
657
        </copy>
658
        
659
        <copy todir="${temp-src-prep-test.dir}/eej/com/saxonica/testdriver">
660
            <fileset dir="${source-eej.dir}/com/saxonica/testdriver" />
661
            
662
        </copy>
663
        <preprocess
664
            source="${source-eej.dir}/com/saxonica/testdriver"
665
            destination="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver"
666
            verbose="true">
667
            <global name="EE" value="false"/>
668
            <global name="PE" value="false"/>
669
            <global name="OPT" value="false"/>
670
            <global name="DOTNET" value="false"/>
671
        </preprocess>
672
        <replaceregexp match="import com\.saxonica\.config\.EnterpriseConfiguration(.*)" replace="" flags="g">
673
            <fileset dir="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver"  includes="**/*.java" />
674
        </replaceregexp>
675
        <replaceregexp match="import com\.saxonica(.*)" replace="" flags="g">
676
            <fileset file="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver/Environment.java"  includes="**/*.java" />
677
        </replaceregexp>
678
        <replaceregexp match="import net\.sf\.saxon\.option(.*)" replace="" flags="g" byline="true">
679
            <fileset dir="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver"  includes="**/*.java" />
680
        </replaceregexp>
681
        <replaceregexp match="import com\.saxonica\.config\.ProfessionalConfiguration(.*)" replace="" flags="g">
682
            <fileset dir="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver"  includes="**/*.java" />
683
        </replaceregexp>        
684
        <replaceregexp match="import com\.saxonica\.config\.EnterpriseTransformerFactory(.*)" replace="" flags="g">
685
            <fileset dir="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver"  includes="**/*.java" />
686
        </replaceregexp>                
687
        <delete file="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver/SchemaTestSuiteDriver.java" />
688
        <delete file="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver/UpdateTestSuiteDriver.java" />
689
        <delete file="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver/XQueryTestSuiteDriver.java" />
690
        <delete file="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver/XsltTestSuiteDriver.java" />
691
        <delete file="${temp-src-prep-test.dir}/hej/com/saxonica/testdriver/XMarkBenchmark.java" />
692
        <echo>Preprocessing test-driver-hej complete!</echo>
693
        
694
        <preprocess
695
            source="${source-eej.dir}/com/saxonica/testdriver"
696
            destination="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver"
697
            verbose="true">
698
            <global name="EE" value="false"/>
699
            <global name="PE" value="true"/>
700
            <global name="OPT" value="true"/>
701
            <global name="DOTNET" value="false"/>
702
        </preprocess>
703
        <replaceregexp match="import com\.saxonica\.config\.EnterpriseConfiguration(.*)" replace="" flags="g">
704
            <fileset dir="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver"  includes="**/*.java" />
705
        </replaceregexp>    
706
        <replaceregexp match="import com\.saxonica\.config\.EnterpriseTransformerFactory(.*)" replace="" flags="g">
707
            <fileset dir="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver"  includes="**/*.java" />
708
        </replaceregexp>                
709
        <delete file="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver/SchemaTestSuiteDriver.java" />
710
        <delete file="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver/UpdateTestSuiteDriver.java" />
711
        <delete file="${temp-src-prep-test.dir}/pej/com/saxonica/testdriver/XQueryTestSuiteDriver.java" />
712
        <!--<delete file="${temp-src-prep-test.dir}/pej/XQueryTestSuiteDriver.java" />-->        
713
        <echo>Preprocessing test-driver-pej complete!</echo>
714
        
715
        <preprocess
716
            source="${source-eej.dir}/com/saxonica/testdriver"
717
            destination="${temp-src-prep-test.dir}/eej/com/saxonica/testdriver"
718
            verbose="true">
719
            <global name="EE" value="true"/>
720
            <global name="PE" value="true"/>
721
            <global name="OPT" value="true"/>
722
            <global name="DOTNET" value="false"/>
723
        </preprocess>
724
        <echo>Preprocessing test-driver-pej complete!</echo>
725
    </target>
726
    
727
    <target name="testdrivers-j" description="Copy Java Test Drivers">
728
            <mkdir dir="${product.dir}/resources/drivers/java"/>
729
            <mkdir dir="${product.dir}/resources/drivers/java/classes"/>
730
            <copy todir="${product.dir}/resources/drivers/java">
731
              <fileset dir="${source-eej.dir}">
732
                <include name="com/saxonica/testdriver/XQueryTestSuiteDriver.java"/> 
733
                <include name="com/saxonica/testdriver/XsltTestSuiteDriver.java"/>
734
                <include name="com/saxonica/testdriver/Xslt30TestSuiteDriver.java"/>
735
                <include name="com/saxonica/testdriver/TestDriver.java"/>
736
                <include name="com/saxonica/testdriver/Environment.java"/>
737
                <include name="com/saxonica/testdriver/ErrorCollector.java"/>
738
                <include name="com/saxonica/testdriver/FotsResultsDocument.java"/>
739
                <include name="com/saxonica/testdriver/ResultsAssertion.java"/>
740
                <include name="com/saxonica/testdriver/ResultsDocument.java"/>
741
                <include name="com/saxonica/testdriver/Spec.java"/>
742
                <include name="com/saxonica/testdriver/TestOutcome.java"/>
743
                <include name="com/saxonica/testdriver/Xslt30ResultsDocument.java"/>                  
744
                <include name="com/saxonica/testdriver/FOTestSuiteDriver.java"/> 
745
                <include name="com/saxonica/testdriver/CanonicalXML.java"/> 
746
                <include name="com/saxonica/testdriver/XQTSModuleURIResolver.java"/> 
747
                <include name="com/saxonica/testdriver/XQTSCollectionURIResolver.java"/> 
748
                <include name="com/saxonica/testdriver/SchemaTestSuiteDriver.java"/> 
749
          </fileset>
750
        </copy>
751
        <javac debug="true" debuglevel="${build.debuglevel}" 
752
                              destdir="${product.dir}/resources/drivers/java/classes"
753
            srcdir="${product.dir}/resources/drivers/java" 
754
            source="${build.compiler.source}"
755
            target="${build.compiler.target}">
756
          <include name="**/*.java"/>    
757
          <classpath>
758
            <path refid="classpath-samples"/>
759
          </classpath>
760
        </javac>
761
    </target>           
762
    
763
                  
764
    <target name="product-javadoc" description="Generate Javadoc." depends="copysource-development-j, preprocess-eej">
765
        <javadoc bottom="Copyright (c) 2004-2013 Saxonica Limited. All rights reserved."
766
            destdir="${javadoc.dir}" doctitle="Saxon9 Java API Documentation"
767
            noindex="false" notree="false" access="protected"
768
            maxmemory="512M" source="1.5">
769
            <packageset dir="${temp-src-prep-eej.dir}">
770
                <include name="net/**"/>
771
                <include name="com/**"/>
772
                <include name="javax/xml/query/**"/>
773
                <exclude name="com/saxonica/testdriver/**"/>
774
                <exclude name="**/dotnet/**"/>
775
                <exclude name="**/DotNetVerifier.java"/>
776
            </packageset>
777
            <packageset dir="${repository}/lib/xqj-final/ri/src"/>
778
            <classpath>
779
                <path refid="classpath-j"/>
780
            </classpath>
781
            
782
            <link href="http://download.oracle.com/javase/6/docs/api/"/>
783
            <link href="http://www.xom.nu/apidocs/"/>
784
            
785
            <group title="s9api Interface" packages="net.sf.saxon.s9api"/>
786
            <group title="Other Interfaces">
787
                <package name="net.sf.saxon"/>              
788
                <package name="net.sf.saxon.lib"/>
789
                <package name="net.sf.saxon.om"/>
790
                <package name="net.sf.saxon.query"/>
791
                <package name="net.sf.saxon.sxpath"/>
792
                <package name="net.sf.saxon.value"/>
793
                <package name="net.sf.saxon.type"/>
794
                <package name="net.sf.saxon.xpath"/>
795
                <package name="net.sf.saxon.xqj"/>
796
                <package name="com.saxonica.config"/>
797
                <package name="com.saxonica.jaxp"/>
798
                <package name="com.saxonica.schema"/>
799
                
800
            </group>
801
            <group title="External Interfaces">
802
                <package name="javax.xml.xquery"/>
803
            </group>
804
 
805
            
806
        </javadoc>
807
        <copy file="${userdoc.dir}/fixed/javadoc/stylesheet.css"
808
              tofile="${javadoc.dir}/stylesheet.css"
809
              overwrite="true"/>
810
    </target>
811

    
812

    
813
    <target name="signjars" depends="jar-hej, jar-pej, jar-eej, maven, private-signjars" description="Sign all JAR files">
814
        <!-- If the private-signjars task is not available, simply delete the dependency -->
815
    </target>
816
    
817
                    
818
    <target name="j" depends="signjars"
819
        description="Generate Saxon (all three editions) for the Java platform"/>
820
        
821
    <target name="release-j" description="Create .ZIP files for release"
822
        depends="j"
823
        >  <!-- , test-j -->
824
      <mkdir dir="${issue.dir}"/> 
825
      <zip zipfile="${issue.dir}/SaxonHE${versionh}J.zip">
826
        <fileset dir="${product.dir}/hej"/>
827
      </zip>
828
      <zip zipfile="${issue.dir}/SaxonPE${versionh}J.zip">
829
        <fileset dir="${product.dir}/pej"/>
830
      </zip>                     
831
          <zip zipfile="${issue.dir}/SaxonEE${versionh}J.zip">
832
        <fileset dir="${product.dir}/eej"/>
833
      </zip>                     
834
     </target>
835

    
836
    <target name="maven" description="Build files ready for maven" depends="compile-hej">
837
        <mkdir dir="product.dir/maven" />
838
       <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="../lib/jarjar-1.1.jar"/>
839
       <jar basedir="${temp-src-prep-hej.dir}" compress="true" jarfile="${product.dir}/maven/Saxon-HE-${version.maven}-sources.jar">
840
           <include name="net/**/*.java"/>
841
           <include name="net/**/package.html"/>
842
      </jar>
843

    
844
      <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/maven/Saxon-HE-${version.maven}.jar">
845
            <include name="net/**/*.class"/>
846
            <exclude name="net/sf/saxon/option/**/*.class"/>
847
            <!--<exclude name="**/javax/**/*.class"/>
848
            <exclude name="**/xpath/**/*.class"/>
849
            <exclude name="**/xqj/**/*.class"/>-->
850
            <include name="javax/xml/xquery/*.class"/>
851
            <include name="META-INF/**"/>
852
            <manifest>
853
                <attribute name="Project-Name" value="Saxon-HE"/>
854
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
855
            </manifest>
856
            <metainf dir="${services.dir}/saxon9he/META-INF"/>
857
            <!--<metainf dir="${services.dir}/saxon9-xpath/META-INF"/>-->
858
            <!--
859
            <service type="javax.xml.transform.TransformerFactory"
860
                provider="net.sf.saxon.TransformerFactoryImpl"/>
861
            -->
862
        </jar>
863

    
864
        <jar basedir="${development-data.dir}" compress="${build.compress}" jarfile="${product.dir}/maven/Saxon-HE-${version.maven}.jar" update="true">
865
            <include name="**"/>
866
        </jar>
867

    
868

    
869
        <jar basedir="${classes-j.dir}" compress="true" jarfile="${product.dir}/maven/Saxon-HE-${version.maven}-compressed.jar">
870
            <include name="net/**/*.class"/>
871
            <exclude name="net/sf/saxon/option/**/*.class"/>
872
            <!--<exclude name="**/javax/**/*.class"/>
873
            <exclude name="**/xpath/**/*.class"/>
874
            <exclude name="**/xqj/**/*.class"/>-->
875
            <include name="javax/xml/xquery/*.class"/>
876
            <include name="META-INF/**"/>
877
            <manifest>
878
                <attribute name="Project-Name" value="Saxon-HE"/>
879
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
880
            </manifest>
881
            <metainf dir="${services.dir}/saxon9he/META-INF"/>
882
            <!--<metainf dir="${services.dir}/saxon9-xpath/META-INF"/>-->
883
            <!--
884
            <service type="javax.xml.transform.TransformerFactory"
885
                provider="net.sf.saxon.TransformerFactoryImpl"/>
886
            -->
887
        </jar>
888

    
889
                <!-- add data files -->
890
        <jar basedir="${development-data.dir}" compress="true" jarfile="${product.dir}/maven/Saxon-HE-${version.maven}-compressed.jar" update="true">
891
            <include name="**"/>
892
        </jar>
893
    </target>
894
       
895
    
896
</project>
(2-2/7)