Project

Profile

Help

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

he / tags / 9.2.0.5 / build / build-n.xml @ c74fd4aa

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

    
3
<project basedir="." default="all" name="Saxon for the .NET platform"
4
         xmlns:dn="antlib:org.apache.ant.dotnet">
5
    
6
    <!-- Build file for Saxon on .NET. This build file is designed to be imported from build.xml -->
7
    
8
        <import file="build-constants.xml"/>      
9
                    
10
    <!-- directories holding C# source code -->
11
    <!-- <property name="vss-n.dir" value="${root}/Documents and Settings/Mike/Documents/Visual Studio 2008/Projects/Saxon.Net"/>-->
12

    
13
               
14
    <!-- directory holding .NET API documentation -->
15
    <property name="dotnetdoc.dir" value="${root}/MyJava/build/dotnetdoc"/>
16
                        
17
    <!-- location of the C# compiler -->
18
    <property name="csharp.compiler" value="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe"/>   
19
                    
20
    
21
    <!-- following locations are for IKVMC code used to build the .NET product -->
22
    
23
    <property name="development-ikvm.dir" value="${root}/MyDotNet"/>
24
    <property name="ikvm.dir" value="${development-ikvm.dir}/ikvm-0.40.0.1"/>
25
    <property name="generated.stubs.dir" value="${development-ikvm.dir}/stubs"/>
26
    
27
    <!-- Key file used for signing the Saxonica-built .NET product. User builds should use a different key file -->
28
    <property name="saxondotnet.snk" value="${development-ikvm.dir}/make/saxondotnet.snk"/>
29
    
30
    <!-- set to 'debug' for testing, 'live' for final build -->
31
    <!--<property name="dot.net.debug" value="live"/>--> 
32
    
33
    <!-- The other important thing to enable debugging is that the .pdb file is available in the same directory
34
         as the .dll. -->
35
    
36
    <!-- Precondition for .NET compilation: IKVM is installed.
37
         * Download from www.ikvm.net
38
         * Unzip into ${development-ikvm.dir}
39
         * Register in the GAC (access the Microsoft .NET Framework Configuration item in the 
40
                                Windows Control Panel, and add the assemblies to the Assembly Cache. 
41
                                At a minimum, install the IKVM.OpenJDK.ClassLibrary.dll and IKVM.Runtime.dll)
42
         * Generate stubs in ${generated.stubs.dir} 
43
           for System.Xml.dll, System.Security.dll, and IKVM.OpenJDK.ClassLibrary.dll
44
    -->       
45
    
46
    <!-- following locations are relative to the build file -->
47
        
48
    <property name="temp-src-nj.dir" value="${temp.dir}/n/jsource"/>
49
    <property name="temp-src-nc.dir" value="${temp.dir}/n/csource"/>
50
    <property name="classes-n.dir" value="${temp.dir}/n/classes"/> 
51
    <property name="jar-n.dir" value="${temp.dir}/n/jar"/> 
52
    <property name="dll-n.dir" value="${temp.dir}/n/dll"/>  
53

    
54
                <!-- following locations are relative to the destination directory -->
55
                
56
    <property name="build-hen.dir" value="${product.dir}/hen"/> 
57
    <property name="build-pen.dir" value="${product.dir}/pen"/>  
58
    <property name="build-een.dir" value="${product.dir}/een"/>
59
     
60
   
61
    <!-- development source -->
62
        
63
    <path id="classpath-n">
64
        <fileset dir="${lib.dir}">
65
            <include name="*.jar"/>
66
        </fileset>
67
        <fileset dir="${ikvm.dir}">
68
                 <include name="classpath/mscorlib.jar"/>
69
                 <include name="classpath/System.jar"/>
70
                 <!--<include name="bin/IKVM.OpenJDK.ClassLibrary.jar"/>-->
71
                 <include name="classpath/IKVM.Runtime.jar"/>
72
        </fileset>
73
        <fileset dir="${generated.stubs.dir}">
74
             <include name="CIL.jar"/>         
75
                 <include name="System.Xml.jar"/>
76
                 <include name="System.Security.jar"/>
77
                 <!--<include name="saxon9.net.api.jar"/>-->
78
        </fileset>         
79
    </path>
80
       
81
    
82
    <target name="prepare-libs-n" description="Prepare required libraries for .NET, specifically Xerces">
83
        <taskdef name="ikvmc" classname="net.ikvm.ant.IkvmcTask" classpath="e:\javalib\ant-ikvmc.0.4.jar"/>
84
        <mkdir dir="${dll-n.dir}"/>
85
        <copy todir="${dll-n.dir}">
86
          <fileset dir="${ikvm.dir}/bin">
87
            <include name="IKVM.OpenJDK.*.dll"/>
88
            <include name="IKVM.Runtime.dll"/>            
89
          </fileset>
90
          <!--<fileset dir="${ikvm.dir}/openjdk/extras">
91
            <include name="charsets.dll"/>
92
          </fileset>-->
93
        </copy>
94
        <!--<copy file="${saxondotnet.snk}" todir="${basedir}"/>-->
95
        <mkdir dir="${basedir}/libs/xerces"/>
96
        <unjar src="${basedir}/libs/xercesimpl.jar" dest="${basedir}/libs/xerces"/>
97
        <unjar src="${basedir}/libs/resolver.jar" dest="${basedir}/libs/xerces"/>
98
        <jar basedir="${basedir}/libs/xerces" compress="${build.compress}" jarfile="${basedir}/libs/xerces.jar">
99
            <include name="**/*.class"/>
100
            <include name="**/*.properties"/>
101
            <exclude name="org.w3c.dom.html.HTMLDOMImplementation.class"/>
102
            <exclude name="META-INF/MANIFEST.MF"/>
103
        </jar> 
104
        <!--<ikvmc home="${ikvm.dir}"
105
               assembly="xerces" target="library" keyfile="${saxondotnet.snk}" version="${version}"
106
               debug="false" srcpath="e:/Javalib/xerces-2_9_0/src"
107
               out="${basedir}/${dll-n.dir}/xercesImpl.dll"
108
               verbose="true">
109
          <fileset dir="${basedir}/libs">
110
            <include name="xerces.jar"/>
111
          </fileset>
112
          <reference path="mscorlib.dll"/>
113
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Core.dll"/>
114
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Charsets.dll"/>
115
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Text.dll"/>
116
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Util.dll"/>
117
          <reference path="${dll-n.dir}/IKVM.OpenJDK.XML.API.dll"/>
118
        </ikvmc>-->
119
    </target>    
120
        
121
    <target name="create-edition-properties-n" description="Create the edition.properties files for the three editions of Saxon on Java">
122
        <mkdir dir="${classes-n.dir}"/>
123
        <mkdir dir="${classes-n.dir}/he"/>
124
        <mkdir dir="${classes-n.dir}/pe"/>
125
        <mkdir dir="${classes-n.dir}/ee"/>
126
        <echo file="${classes-n.dir}/he/edition.properties"
127
>config=net.sf.saxon.Configuration
128
platform=net.sf.saxon.dotnet.DotNetPlatform
129
</echo>
130
        <echo file="${classes-n.dir}/pe/edition.properties"
131
>config=com.saxonica.config.ProfessionalConfiguration
132
platform=com.saxonica.config.DotNetPlatformPE
133
</echo>
134
        <echo file="${classes-n.dir}/ee/edition.properties"
135
>config=com.saxonica.config.EnterpriseConfiguration
136
platform=com.saxonica.config.DotNetPlatformPE
137
</echo>   
138
    </target>
139
    
140
    <target name="prepare-n" depends="prepare-libs-n, create-edition-properties-n"/>
141
    
142
    
143
    <target name="copysource-development-n" description="Copy source files for Saxon on .NET from development directory">
144
        <copy todir="${temp-src-nj.dir}">
145
          <fileset dir="${source-hej.dir}">
146
            <include name="net/sf/saxon/**/*.java"/>
147
            <exclude name="**/ant/**"/>
148
            <exclude name="**/dom/**"/>
149
            <exclude name="**/dom4j/**"/>
150
            <exclude name="**/java/**"/>
151
            <exclude name="**/jdom/**"/>
152
            <exclude name="**/s9api/**"/>
153
            <exclude name="**/sql/**"/>
154
            <exclude name="**/xom/**"/>
155
            <exclude name="**/xpath/**"/>
156
            <exclude name="**/xqj/**"/>
157
          </fileset>
158
          <fileset dir="${source-eej.dir}">
159
                    <include name="com/saxonica/config/*.java"/>
160
                    <include name="com/saxonica/extfn/*.java"/>
161
            <include name="com/saxonica/extra/*.java"/>
162
            <include name="com/saxonica/fsa/*.java"/>
163
            <include name="com/saxonica/hof/*.java"/>
164
            <include name="com/saxonica/ptree/*.java"/>
165
            <include name="com/saxonica/pull/*.java"/>
166
            <include name="com/saxonica/query11/*.java"/>
167
            <include name="com/saxonica/schema/*.java"/>
168
            <include name="com/saxonica/sdoc/*.java"/>
169
            <include name="com/saxonica/stream/**/*.java"/>
170
            <include name="com/saxonica/style/*.java"/>
171
            <include name="com/saxonica/update/*.java"/>
172
            <include name="com/saxonica/validate/*.java"/>
173
            <include name="com/saxonica/xsltextn/*.java"/>
174
            <include name="com/saxonica/Validate.java"/>            
175
          </fileset>          
176
        </copy>
177
        <copy todir="${temp-src-nc.dir}/api">
178
          <fileset dir="${source-api-n.dir}">
179
            <include name="Saxon.Api/*.cs"/>
180
            <include name="Saxon.Api/Properties/AssemblyInfo.cs"/>
181
          </fileset>
182
        </copy>
183
        <!-- Commented out code used when source in Visual Studio        
184
        <copy todir="${temp-src-nc.dir}/cmd">
185
          <fileset dir="${source-cmd-n.dir}/Transform">
186
            <include name="*.cs"/>
187
          </fileset>
188
          <fileset dir="${source-cmd-n.dir}/Query">
189
            <include name="*.cs"/>
190
          </fileset>
191
          <fileset dir="${source-cmd-n.dir}/Validate">
192
            <include name="*.cs"/>
193
          </fileset>
194
        </copy>
195
        -->
196
        <copy todir="${temp-src-nc.dir}/cmd">
197
          <fileset dir="${source-cmd-n.dir}">
198
            <include name="Transform.cs"/>
199
            <include name="Query.cs"/>
200
            <include name="Validate.cs"/>
201
          </fileset>
202
        </copy>
203
        <!-- Commented out code used when source in Visual Studio   
204
        <copy todir="${temp-src-nc.dir}/samples">
205
          <fileset dir="${source-samples-n.dir}/Examples">
206
            <include name="*.cs"/>
207
          </fileset>
208
          <fileset dir="${source-samples-n.dir}/SampleExtensions">
209
            <include name="*.cs"/>
210
          </fileset>
211
          <fileset dir="${source-samples-n.dir}/TestRunner">
212
            <include name="*.cs"/>
213
          </fileset>
214
        </copy>
215
        -->
216
        <copy todir="${temp-src-nc.dir}/samples">
217
          <fileset dir="${source-samples-n.dir}">
218
            <include name="Examples.cs"/>
219
            <include name="SampleExtensions.cs"/>
220
            <include name="TestRunner.cs"/>
221
          </fileset>
222
        </copy>
223
    </target>    
224
                      
225
    <target name="compile-n" description="Compile Saxon Java classes for the .NET product" 
226
            depends="copysource-development-n">
227
        <mkdir dir="${classes-n.dir}"/>
228
        <mkdir dir="${classes-n.dir}/he"/>
229
        <mkdir dir="${classes-n.dir}/pe"/>
230
        <mkdir dir="${classes-n.dir}/ee"/>
231
        <echo message="Compile with debug = ${build.debug}, debuglevel = ${build.debuglevel}"/>
232
        <javac debug="${build.debug}" debuglevel="${build.debuglevel}" 
233
            deprecation="${build.deprecation}" destdir="${classes-n.dir}"
234
            optimize="${build.optimize}" srcdir="${temp-src-nj.dir}" source="${build.compiler.source}"
235
            target="${build.compiler.target}">
236

    
237
            <include name="net/**"/>
238
            <include name="com/saxonica/**"/>
239
            <exclude name="**/s9api/**"/>
240
            <exclude name="**/EnterpriseXPathFactory.java"/>
241
            <exclude name="**/ProfessionalXPathFactory.java"/>
242
            <exclude name="**/EnterpriseTransformerFactory.java"/>
243
            <exclude name="**/ProfessionalTransformerFactory.java"/>
244
            <exclude name="**/JavaPlatform.java"/>
245
            <exclude name="**/JavaPlatformPE.java"/>
246
            <exclude name="**/JavaLocalizerFactory.java"/>
247
            <classpath>
248
                <path refid="classpath-n"/>
249
            </classpath>
250
        </javac>
251
    </target>
252
    
253
    <target name="jar-hen" description="Create Saxon-HE jar files for .NET" depends="compile-n">
254
        <mkdir dir="${jar-n.dir}"/>
255
        <jar basedir="${classes-n.dir}" compress="${build.compress}" jarfile="${jar-n.dir}/saxon9he.jar">
256
            <include name="net/**/*.class"/>
257
            <exclude name="net/sf/saxon/ant/*.class"/>
258
            <exclude name="net/sf/saxon/option/**/*.class"/>
259
        </jar>
260
        <jar basedir="${classes-n.dir}/he" compress="${build.compress}" jarfile="${jar-n.dir}/saxon9he.jar" update="true">
261
            <include name="edition.properties"/>
262
        </jar> 
263
    </target> 
264
    
265
    <target name="jar-pen" description="Create Saxon-PE jar files for .NET" depends="compile-n">
266
        <mkdir dir="${jar-n.dir}"/>
267
        <jar basedir="${classes-n.dir}" compress="${build.compress}" jarfile="${jar-n.dir}/saxon9pe.jar">
268
            <include name="net/**/*.class"/>
269
            <exclude name="net/sf/saxon/ant/*.class"/>
270
            <exclude name="**/sql/**/*.class"/>
271
            <include name="com/saxonica/**/*.class"/>
272
            <exclude name="com/saxonica/codegen/**/*.class"/>
273
            <exclude name="com/saxonica/deploy/**/*.class"/>
274
            <exclude name="com/saxonica/fsa/**/*.class"/>
275
            <exclude name="com/saxonica/jaxp/**/**/*.class"/>
276
            <exclude name="com/saxonica/schema/**/*.class"/>
277
            <exclude name="com/saxonica/sdoc/**/*.class"/>
278
            <exclude name="com/saxonica/stream/**/*.class"/>
279
            <exclude name="com/saxonica/update/**/*.class"/>
280
            <exclude name="com/saxonica/validate/**/*.class"/>
281
            <exclude name="com/saxonica/Validate.class"/>
282
            <exclude name="com/saxonica/CompileQuery.class"/>
283
            <exclude name="com/saxonica/CompileStylesheet.class"/>
284
            <exclude name="com/saxonica/CompileStylesheet$TracingObjectOutputStream.class"/>
285
            <exclude name="com/saxonica/config/EnterpriseConfiguration.class"/>
286
            <exclude name="com/saxonica/config/EnterpriseConfiguration$SurrogateSchema.class"/>
287
            <exclude name="com/saxonica/config/ProfessionalTransformerFactory.class"/>
288
            <exclude name="com/saxonica/config/ProfessionalXPathFactory.class"/>
289
            <exclude name="com/saxonica/config/EnterpriseTransformerFactory.class"/>
290
            <exclude name="com/saxonica/config/EnterpriseXPathFactory.class"/>
291
            <exclude name="com/saxonica/extra/StaticQueryContextEE.class"/>
292
            <exclude name="com/saxonica/extra/OptimizerEE.class"/>
293
            <exclude name="com/saxonica/extra/GeneralComparisonEE.class"/>         
294
        </jar>
295
        <jar basedir="${classes-n.dir}/pe" compress="${build.compress}" jarfile="${jar-n.dir}/saxon9pe.jar" update="true">
296
            <include name="edition.properties"/>
297
        </jar>
298
    </target>     
299
    
300
    <target name="jar-een" description="Create Saxon-EE jar files for .NET" depends="compile-n">
301
        <mkdir dir="${jar-n.dir}"/>
302
        <jar basedir="${classes-n.dir}" compress="${build.compress}" jarfile="${jar-n.dir}/saxon9ee.jar">
303
            <include name="net/**/*.class"/>
304
            <include name="com/saxonica/**/*.class"/>
305
            <exclude name="com/saxonica/CompileQuery.class"/>
306
            <exclude name="com/saxonica/CompileStylesheet.class"/>
307
            <exclude name="com/saxonica/config/EnterpriseTransformerFactory.class"/>
308
            <exclude name="com/saxonica/config/EnterpriseXPathFactory.class"/>
309
        </jar>
310
        <jar basedir="${classes-n.dir}/ee" compress="${build.compress}" jarfile="${jar-n.dir}/saxon9ee.jar" update="true">
311
            <include name="edition.properties"/>
312
        </jar>
313
    </target>
314
    
315
    <target name="dll-n" description="Create DLLs for .NET" depends="jar-hen, jar-pen, jar-een">
316
        <taskdef name="ikvmc" classname="net.ikvm.ant.IkvmcTask" classpath="e:\javalib\ant-ikvmc.0.4.jar"/>
317
        <mkdir dir="${dll-n.dir}"/>
318
        <copy todir="${jar-n.dir}">
319
          <fileset dir="${basedir}/libs">
320
            <include name="xerces.jar"/>
321
          </fileset>
322
        </copy>
323
         
324
        <!--
325
            Invoke IKVMC to cross-compile the JAR files into DLLs
326
        -->
327
        
328
        <ikvmc home="${ikvm.dir}"
329
               assembly="saxon9he" target="library" keyfile="${saxondotnet.snk}" version="${version}"
330
               debug="false" srcpath="c:/MyJava/saxon8.x"
331
               out="${basedir}/${dll-n.dir}/saxon9he.dll"
332
               verbose="true">
333
          <fileset dir="${basedir}/${jar-n.dir}">
334
            <include name="saxon9he.jar"/>
335
            <include name="xerces.jar"/>
336
          </fileset>
337
          <reference path="mscorlib.dll"/>
338
          <reference path="System.Xml"/>
339
          <reference path="System"/>
340
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Core.dll"/>
341
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Charsets.dll"/>
342
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Text.dll"/>
343
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Util.dll"/>
344
          <reference path="${dll-n.dir}/IKVM.OpenJDK.XML.API.dll"/>
345
          <!--<reference path="${dll-n.dir}/xercesImpl.dll"/>-->
346
          <!--<reference path="${dll-n.dir}/IKVM.OpenJDK.XMLparse.dll"/>-->
347
        </ikvmc>
348
        <ikvmc home="${ikvm.dir}"
349
               assembly="saxon9pe" 
350
               target="library" 
351
               keyfile="${saxondotnet.snk}" 
352
               version="${version}"
353
               debug="false" srcpath="c:/MyJava/saxon8.x"
354
               out="${basedir}/${dll-n.dir}/saxon9pe.dll"
355
               verbose="true">
356
          <fileset dir="${basedir}/${jar-n.dir}">
357
            <include name="saxon9pe.jar"/>
358
            <include name="xerces.jar"/>
359
          </fileset>
360
          <reference path="mscorlib.dll"/>
361
          <reference path="System.Xml"/>
362
          <reference path="System"/>
363
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Core.dll"/>
364
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Charsets.dll"/>
365
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Security.dll"/>
366
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Text.dll"/>
367
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Util.dll"/>
368
          <reference path="${dll-n.dir}/IKVM.OpenJDK.XML.API.dll"/>
369
          <!--<reference path="${dll-n.dir}/xercesImpl.dll"/>-->
370
          <!--<reference path="${dll-n.dir}/IKVM.OpenJDK.XMLparse.dll"/>-->
371
          <reference path="System.Security"/>
372
        </ikvmc>
373
        <ikvmc home="${ikvm.dir}"
374
               assembly="saxon9ee" 
375
               target="library" 
376
               keyfile="${saxondotnet.snk}" 
377
               version="${version}"
378
               debug="false" srcpath="c:/MyJava/saxon8.x"
379
               out="${basedir}/${dll-n.dir}/saxon9ee.dll"
380
               verbose="true">
381
          <fileset dir="${basedir}/${jar-n.dir}">
382
            <include name="saxon9ee.jar"/>
383
            <include name="xerces.jar"/>
384
          </fileset>
385
          <reference path="mscorlib.dll"/>
386
          <reference path="System.Xml"/>
387
          <reference path="System"/>
388
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Core.dll"/>
389
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Charsets.dll"/>
390
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Security.dll"/>
391
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Text.dll"/>
392
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Util.dll"/>
393
          <reference path="${dll-n.dir}/IKVM.OpenJDK.XML.API.dll"/>
394
          <!--<reference path="${dll-n.dir}/xercesImpl.dll"/>-->
395
          <!--<reference path="${dll-n.dir}/IKVM.OpenJDK.XMLparse.dll"/>-->
396
          <reference path="System.Security"/>
397
        </ikvmc>
398
        
399
        <!-- Create a version of the DLL for debugging. Debugging in Visual Studio
400
             requires a version of the assembly that has no strong name. Currently
401
             we build this only for Enterprise Edition. The debugging version of the
402
             DLL plays no further part in the build, and is not included in the
403
             released product, but it can be used by linking it as a reference
404
             from the relevant client in Visual Studio, for example Transform.exe -->
405
        
406
        <ikvmc home="${ikvm.dir}"
407
               assembly="saxon9ee-debug" 
408
               target="library" 
409
               debug="true" srcpath="c:/MyJava/saxon8.x"
410
               out="${basedir}/${dll-n.dir}/saxon9ee-debug.dll"
411
               verbose="true">
412
          <fileset dir="${basedir}/${jar-n.dir}">
413
            <include name="saxon9ee.jar"/>
414
            <include name="xerces.jar"/>
415
          </fileset>
416
          <reference path="mscorlib.dll"/>
417
          <reference path="System.Xml"/>
418
          <reference path="System"/>
419
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Core.dll"/>
420
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Charsets.dll"/>
421
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Security.dll"/>
422
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Text.dll"/>
423
          <reference path="${dll-n.dir}/IKVM.OpenJDK.Util.dll"/>
424
          <reference path="${dll-n.dir}/IKVM.OpenJDK.XML.API.dll"/>
425
          <reference path="System.Security"/>
426
        </ikvmc>
427
        
428
        <!--           
429
        <exec dir="." executable="ikvmc.cmd" >
430
          <arg line="${dot.net.debug}"/>   <!- -set to 'debug' for testing, 'live' for final build - ->
431
          <arg line="${basedir}/${jar-n.dir}"/>
432
          <arg line="${basedir}/${dll-n.dir}"/>
433
          <arg line="${version}"/>
434
        </exec>-->
435
        
436
        <!-- NB Remember to add the dll's to the GAC - it doesn't work if you don't -->
437
        
438
    </target>
439
    
440
    <target name="csharp-hen" description="Compile C# source for .NET commands and API library (HE)"
441
            xmlns:dn="antlib:org.apache.ant.dotnet" depends="dll-n"
442
        > <!---->
443
        
444
        <taskdef 
445
            uri="antlib:org.apache.ant.dotnet">
446
            <classpath>
447
              <pathelement location="e:/javalib/ant-dotnet-1.0/ant-dotnet-1.0.jar"/>
448
            </classpath>
449
        </taskdef>
450

    
451
                <mkdir dir="${dll-n.dir}/he"/>
452
                
453
                <copy todir="${dll-n.dir}/he">
454
            <fileset dir="${dll-n.dir}">
455
                   <include name="IKVM.OpenJDK.Core.dll"/>
456
                   <include name="IKVM.OpenJDK.Charsets.dll"/>
457
                   <include name="IKVM.OpenJDK.Text.dll"/>
458
                   <include name="IKVM.OpenJDK.Util.dll"/>
459
                   <include name="IKVM.OpenJDK.XML.API.dll"/>
460
                   <include name="xercesImpl.dll"/>
461
              <include name="IKVM.Runtime.dll"/>
462
              <!--<include name="IKVM.OpenJDK.Charsets.dll"/>-->
463
              <include name="saxon9he.dll"/>
464
            </fileset>
465
        </copy>
466
                
467
                <!-- API library DLL -->
468
                
469
                <dn:csc targetType="library" outputFile="${basedir}/${dll-n.dir}/he/saxon9he-api.dll"
470
                     docFile="${dotnetdoc.dir}/apidoc.xml"
471
                     extraOptions="-keyfile:${saxondotnet.snk}"
472
                     executable="${csharp.compiler}">
473
                     <src dir="${basedir}/${temp-src-nc.dir}/api/Saxon.Api" includes="*.cs Properties/AssemblyInfo.cs"/>
474
                     <reference dir="${basedir}/${dll-n.dir}">
475
                        <!--<include name="charsets.dll"/>-->
476
                        <include name="IKVM.OpenJDK.Core.dll"/>
477
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
478
                     <include name="IKVM.OpenJDK.Text.dll"/>
479
                     <include name="IKVM.OpenJDK.Util.dll"/>
480
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
481
                     <include name="xercesImpl.dll"/>
482
                        <include name="IKVM.Runtime.dll"/>
483
                        <include name="saxon9he.dll"/>
484
                     </reference>
485
                </dn:csc>
486
                
487
                <!-- Transform, Query, Validate commands -->
488
                
489
                <dn:csc targetType="exe" 
490
                     win32icon="c:\MyDotNet\icons\gyfu.ico"
491
                     outputFile="${basedir}/${dll-n.dir}/he/Transform.exe"
492
                     executable="${csharp.compiler}">
493
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Transform.cs"/>
494
                     <reference dir="${basedir}/${dll-n.dir}">
495
                        <include name="IKVM.OpenJDK.Core.dll"/>
496
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
497
                     <include name="IKVM.OpenJDK.Text.dll"/>
498
                     <include name="IKVM.OpenJDK.Util.dll"/>
499
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
500
                     <include name="xercesImpl.dll"/>
501
                        <include name="IKVM.Runtime.dll"/>
502
                        <!--<include name="charsets.dll"/>-->
503
                        <include name="saxon9he.dll"/>
504
                     </reference>
505
                </dn:csc>
506
                
507
                <dn:csc targetType="exe" win32icon="c:\MyDotNet\icons\gyfu.ico"
508
                     outputFile="${basedir}/${dll-n.dir}/he/Query.exe"
509
                     executable="${csharp.compiler}">
510
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Query.cs"/>
511
                     <reference dir="${basedir}/${dll-n.dir}">
512
                        <include name="IKVM.OpenJDK.Core.dll"/>
513
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
514
                     <include name="IKVM.OpenJDK.Text.dll"/>
515
                     <include name="IKVM.OpenJDK.Util.dll"/>
516
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
517
                     <include name="xercesImpl.dll"/>
518
                        <include name="IKVM.Runtime.dll"/>
519
                        <!--<include name="charsets.dll"/>-->
520
                        <include name="saxon9he.dll"/>
521
                     </reference>
522
                </dn:csc>
523
                
524
    </target>
525
    
526
    <target name="csharp-pen" description="Compile C# source for .NET commands and API library (PE)"
527
            xmlns:dn="antlib:org.apache.ant.dotnet" depends="dll-n"
528
        > <!---->
529
        
530
        <taskdef 
531
            uri="antlib:org.apache.ant.dotnet">
532
            <classpath>
533
              <pathelement location="e:/javalib/ant-dotnet-1.0/ant-dotnet-1.0.jar"/>
534
            </classpath>
535
          </taskdef>
536

    
537
                <mkdir dir="${dll-n.dir}/pe"/>
538
                
539
                <copy todir="${dll-n.dir}/pe">
540
            <fileset dir="${dll-n.dir}">
541
                   <include name="IKVM.OpenJDK.Core.dll"/>
542
                   <include name="IKVM.OpenJDK.Charsets.dll"/>
543
                   <include name="IKVM.OpenJDK.Security.dll"/>
544
                   <include name="IKVM.OpenJDK.Text.dll"/>
545
                   <include name="IKVM.OpenJDK.Util.dll"/>
546
                   <include name="IKVM.OpenJDK.XML.API.dll"/>
547
                   <include name="xercesImpl.dll"/>
548
              <include name="IKVM.Runtime.dll"/>
549
              <!--<include name="charsets.dll"/>-->
550
              <include name="saxon9pe.dll"/>
551
            </fileset>
552
        </copy>
553
                
554
                <!-- API library DLL -->
555
                
556
                <dn:csc targetType="library" outputFile="${basedir}/${dll-n.dir}/pe/saxon9pe-api.dll"
557
                     docFile="${dotnetdoc.dir}/apidoc.xml"
558
                     extraOptions="-keyfile:${saxondotnet.snk}"
559
                     executable="${csharp.compiler}">
560
                     <src dir="${basedir}/${temp-src-nc.dir}/api/Saxon.Api" includes="*.cs"/>
561
                     <reference dir="${basedir}/${dll-n.dir}">
562
                        <!--<include name="charsets.dll"/>-->
563
                        <include name="IKVM.OpenJDK.Core.dll"/>
564
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
565
                     <include name="IKVM.OpenJDK.Security.dll"/>
566
                     <include name="IKVM.OpenJDK.Text.dll"/>
567
                     <include name="IKVM.OpenJDK.Util.dll"/>
568
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
569
                     <include name="IKVM.Runtime.dll"/>
570
                        <include name="saxon9pe.dll"/>
571
                     </reference>
572
                </dn:csc>
573
                
574
                <!-- Transform, Query, Validate commands -->
575
                
576
                <dn:csc targetType="exe" win32icon="c:\MyDotNet\icons\gyfu.ico"
577
                     outputFile="${basedir}/${dll-n.dir}/pe/Transform.exe"
578
                     executable="${csharp.compiler}">
579
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Transform.cs"/>
580
                     <reference dir="${basedir}/${dll-n.dir}">
581
                        <include name="IKVM.OpenJDK.Core.dll"/>
582
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
583
                     <include name="IKVM.OpenJDK.Security.dll"/>
584
                     <include name="IKVM.OpenJDK.Text.dll"/>
585
                     <include name="IKVM.OpenJDK.Util.dll"/>
586
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
587
                        <include name="IKVM.Runtime.dll"/>
588
                        <!--<include name="charsets.dll"/>-->
589
                        <include name="saxon9pe.dll"/>
590
                     </reference>
591
                </dn:csc>
592
                
593
                <dn:csc targetType="exe" win32icon="c:\MyDotNet\icons\gyfu.ico"
594
                     outputFile="${basedir}/${dll-n.dir}/pe/Query.exe"
595
                     executable="${csharp.compiler}">
596
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Query.cs"/>
597
                     <reference dir="${basedir}/${dll-n.dir}">
598
                        <include name="IKVM.OpenJDK.Core.dll"/>
599
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
600
                     <include name="IKVM.OpenJDK.Security.dll"/>
601
                     <include name="IKVM.OpenJDK.Text.dll"/>
602
                     <include name="IKVM.OpenJDK.Util.dll"/>
603
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
604
                        <include name="IKVM.Runtime.dll"/>
605
                        <!--<include name="charsets.dll"/>-->
606
                        <include name="saxon9pe.dll"/>
607
                     </reference>
608
                </dn:csc>
609
                
610
    </target>    
611
    
612
    <target name="csharp-een" description="Compile C# source for .NET commands and API library (EE)"
613
            xmlns:dn="antlib:org.apache.ant.dotnet" depends="dll-n"
614
        > <!---->
615
        
616
        <taskdef 
617
            uri="antlib:org.apache.ant.dotnet">
618
            <classpath>
619
              <pathelement location="e:/javalib/ant-dotnet-1.0/ant-dotnet-1.0.jar"/>
620
            </classpath>
621
          </taskdef>
622

    
623
                <mkdir dir="${dll-n.dir}/ee"/>
624
                
625
                <copy todir="${dll-n.dir}/ee">
626
            <fileset dir="${dll-n.dir}">
627
                   <include name="IKVM.OpenJDK.Core.dll"/>
628
                   <include name="IKVM.OpenJDK.Charsets.dll"/>
629
                   <include name="IKVM.OpenJDK.Security.dll"/>
630
                   <include name="IKVM.OpenJDK.Text.dll"/>
631
                   <include name="IKVM.OpenJDK.Util.dll"/>
632
                   <include name="IKVM.OpenJDK.XML.API.dll"/>
633
              <include name="IKVM.Runtime.dll"/>
634
              <include name="saxon9ee.dll"/>
635
              <include name="saxon9ee-debug.dll"/>
636
            </fileset>
637
        </copy>
638
                
639
                <!-- API library DLL -->
640
                
641
                <!-- Note, this is not built for debugging in Visual Studio. Such a version
642
                     is best built within VS itself -->
643
                
644
                <dn:csc targetType="library" outputFile="${basedir}/${dll-n.dir}/ee/saxon9ee-api.dll"
645
                     docFile="${dotnetdoc.dir}/apidoc.xml"
646
                     extraOptions="-keyfile:${saxondotnet.snk}"
647
                     executable="${csharp.compiler}">
648
                     <src dir="${basedir}/${temp-src-nc.dir}/api/Saxon.Api" includes="*.cs"/>
649
                     <reference dir="${basedir}/${dll-n.dir}/ee">
650
                        <!--<include name="charsets.dll"/>-->
651
                        <include name="IKVM.OpenJDK.Core.dll"/>
652
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
653
                     <include name="IKVM.OpenJDK.Security.dll"/>
654
                     <include name="IKVM.OpenJDK.Text.dll"/>
655
                     <include name="IKVM.OpenJDK.Util.dll"/>
656
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
657
                        <include name="IKVM.Runtime.dll"/>
658
                        <include name="saxon9ee.dll"/>
659
                     </reference>
660
                </dn:csc>
661
                
662
                <!-- Transform, Query, Validate commands -->
663
                
664
                <dn:csc targetType="exe" win32icon="c:\MyDotNet\icons\gyfu.ico"
665
                     outputFile="${basedir}/${dll-n.dir}/ee/Transform.exe"
666
                     executable="${csharp.compiler}">
667
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Transform.cs"/>
668
                     <reference dir="${basedir}/${dll-n.dir}">
669
                        <include name="IKVM.OpenJDK.Core.dll"/>
670
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
671
                     <include name="IKVM.OpenJDK.Security.dll"/>
672
                     <include name="IKVM.OpenJDK.Text.dll"/>
673
                     <include name="IKVM.OpenJDK.Util.dll"/>
674
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
675
                        <include name="IKVM.Runtime.dll"/>
676
                        <!--<include name="charsets.dll"/>-->
677
                        <include name="saxon9ee.dll"/>
678
                     </reference>
679
                </dn:csc>
680
                
681
                <dn:csc targetType="exe" win32icon="c:\MyDotNet\icons\gyfu.ico"
682
                     outputFile="${basedir}/${dll-n.dir}/ee/Query.exe"
683
                     executable="${csharp.compiler}">
684
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Query.cs"/>
685
                     <reference dir="${basedir}/${dll-n.dir}">
686
                        <include name="IKVM.OpenJDK.Core.dll"/>
687
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
688
                     <include name="IKVM.OpenJDK.Security.dll"/>
689
                     <include name="IKVM.OpenJDK.Text.dll"/>
690
                     <include name="IKVM.OpenJDK.Util.dll"/>
691
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
692
                        <include name="IKVM.Runtime.dll"/>
693
                        <!--<include name="charsets.dll"/>-->
694
                        <include name="saxon9ee.dll"/>
695
                     </reference>
696
                </dn:csc>
697
                
698
                <dn:csc targetType="exe" win32icon="c:\MyDotNet\icons\gyfu.ico"
699
                     outputFile="${basedir}/${dll-n.dir}/ee/Validate.exe"
700
                     executable="${csharp.compiler}">
701
                     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Validate.cs"/>
702
                     <reference dir="${basedir}/${dll-n.dir}">
703
                        <include name="IKVM.OpenJDK.Core.dll"/>
704
                     <include name="IKVM.OpenJDK.Charsets.dll"/>
705
                     <include name="IKVM.OpenJDK.Security.dll"/>
706
                     <include name="IKVM.OpenJDK.Text.dll"/>
707
                     <include name="IKVM.OpenJDK.Util.dll"/>
708
                     <include name="IKVM.OpenJDK.XML.API.dll"/>
709
                        <include name="IKVM.Runtime.dll"/>
710
                        <include name="saxon9ee.dll"/>
711
                     </reference>
712
                </dn:csc>
713
    </target>    
714
    
715
    <target name="compile-samples-n" description="Compile C# source for .NET commands and API library (HE)"
716
            xmlns:dn="antlib:org.apache.ant.dotnet" depends="csharp-hen, csharp-pen, csharp-een, samples-common"
717
        >
718

    
719
       <taskdef 
720
            uri="antlib:org.apache.ant.dotnet">
721
            <classpath>
722
              <pathelement location="e:/javalib/ant-dotnet-1.0/ant-dotnet-1.0.jar"/>
723
            </classpath>
724
          </taskdef>
725

    
726
                <mkdir dir="${dll-n.dir}/samples"/>
727
                <mkdir dir="${dll-n.dir}/tests"/>
728
                
729
                <!-- Sample applications and test drivers -->
730
                
731
                <dn:csc targetType="exe"
732
                     outputFile="${basedir}/${dll-n.dir}/samples/Examples.exe"
733
                     win32icon="c:\MyDotNet\icons\csharp.ico"
734
                     debug="true"
735
                     executable="${csharp.compiler}">
736
                     <src dir="${basedir}/${temp-src-nc.dir}/samples" includes="Examples.cs"/>
737
                     <reference dir="${basedir}/${dll-n.dir}/ee">
738
                        <include name="IKVM.OpenJDK.*.dll"/>
739
                        <include name="saxon9ee-api.dll"/>
740
                     </reference>
741
                </dn:csc>
742
                
743
                <dn:csc targetType="library"
744
                     outputFile="${basedir}/${dll-n.dir}/samples/SampleExtensions.dll"
745
                     debug="true"
746
                     executable="${csharp.compiler}">
747
                     <src dir="${basedir}/${temp-src-nc.dir}/samples" includes="SampleExtensions.cs"/>
748
                     <reference dir="${basedir}/${dll-n.dir}/ee">
749
                        <include name="IKVM.OpenJDK.*.dll"/>
750
                        <include name="saxon9ee.dll"/>
751
                        <include name="saxon9ee-api.dll"/>
752
                     </reference>
753
                </dn:csc>
754
                
755
                <dn:csc targetType="winexe"
756
                     outputFile="${basedir}/${dll-n.dir}/samples/TestRunner.exe"
757
                     win32icon="c:\MyDotNet\icons\csharp.ico"
758
                     debug="true"
759
                     executable="${csharp.compiler}">
760
                     <src dir="${basedir}/${temp-src-nc.dir}/samples">
761
                       <include name="TestRunnerForm.cs"/>
762
                       <include name="TestRunnerForm.Designer.cs"/>
763
                       <include name="TestRunnerProgram.cs"/>
764
                       <include name="XsltTestSuiteDriver.cs"/>
765
                       <include name="XQueryTestSuiteDriver.cs"/>
766
                       <include name="SchemaTestSuiteDriver.cs"/>
767
                       <include name="IFeedbackListener.cs"/>
768
                       <include name="FileComparer.cs"/>
769
                     </src>
770
                     <reference dir="${basedir}/${dll-n.dir}/ee">
771
                        <include name="IKVM.OpenJDK.*.dll"/>
772
                        <include name="saxon9ee-api.dll"/>
773
                     </reference>
774
                </dn:csc>                                
775
                
776
                                      
777
                <!--                
778
            <exec dir="." executable="csharp-compile.cmd" >
779
          <arg line="${basedir}/${temp-src-nc.dir}"/>
780
          <arg line="${basedir}/${dll-n.dir}"/>
781
          <arg line="${version}"/>
782
        </exec> -->               
783
    </target>
784
    
785
    <target name="product-hen" description="Assemble product.directory for Saxon-HE on .NET"
786
                                                                                           depends="csharp-hen">
787
      <mkdir dir="${build-hen.dir}/bin"/>                                                                                     
788
      <copy todir="${build-hen.dir}/bin">
789
        <fileset dir="${dll-n.dir}/he">
790
               <include name="IKVM.OpenJDK.*.dll"/>
791
          <include name="IKVM.Runtime.dll"/>
792
          <include name="saxon9he.dll"/>
793
          <include name="saxon9he-api.dll"/>
794
          <include name="Query.exe"/>
795
          <include name="Transform.exe"/>
796
        </fileset>
797
      </copy>
798
                        <echo file="${build-hen.dir}/bin/install-gac.cmd">
799
                            set NET="%PROGRAMFILES%\Microsoft SDKs\Windows\v6.0A\bin"
800
                                rem -- alternative location: set NET="%PROGRAMFILES%\Microsoft.NET\SDK\v2.0\Bin"
801
                                %NET%\gacutil /if IKVM.Runtime.dll
802
                                %NET%\gacutil /if IKVM.OpenJDK.Core.dll
803
                                %NET%\gacutil /if IKVM.OpenJDK.Charsets.dll
804
                                %NET%\gacutil /if IKVM.OpenJDK.Util.dll
805
                                %NET%\gacutil /if IKVM.OpenJDK.XML.API.dll
806
                                %NET%\gacutil /if xercesImpl.dll
807
                                %NET%\gacutil /if saxon9he.dll 
808
                                %NET%\gacutil /if saxon9he-api.dll                
809
      </echo> 
810
    </target>
811
    
812
    <target name="product-pen" description="Assemble product.directory for Saxon-PE on .NET"
813
                                                                                           depends="csharp-pen">
814
      <mkdir dir="${build-pen.dir}/bin"/>                                                                                     
815
      <copy todir="${build-pen.dir}/bin">
816
        <fileset dir="${dll-n.dir}/pe">
817
               <include name="IKVM.OpenJDK.*.dll"/>
818
          <include name="IKVM.Runtime.dll"/>
819
          <include name="saxon9pe.dll"/>
820
          <include name="saxon9pe-api.dll"/>
821
          <include name="Query.exe"/>
822
          <include name="Transform.exe"/>
823
        </fileset>
824
      </copy>
825
                        <echo file="${build-pen.dir}/bin/install-gac.cmd">
826
                            set NET="%PROGRAMFILES%\Microsoft SDKs\Windows\v6.0A\bin"
827
                                rem -- alternative location: set NET="%PROGRAMFILES%\Microsoft.NET\SDK\v2.0\Bin"
828
                                %NET%\gacutil /if IKVM.Runtime.dll
829
                                %NET%\gacutil /if IKVM.OpenJDK.Core.dll
830
                                %NET%\gacutil /if IKVM.OpenJDK.Charsets.dll
831
                                %NET%\gacutil /if IKVM.OpenJDK.Security.dll
832
                                %NET%\gacutil /if IKVM.OpenJDK.Util.dll
833
                                %NET%\gacutil /if IKVM.OpenJDK.XML.API.dll
834
                                %NET%\gacutil /if xercesImpl.dll
835
                                %NET%\gacutil /if saxon9pe.dll 
836
                                %NET%\gacutil /if saxon9pe-api.dll                
837
      </echo> 
838
    </target>
839
    
840
    <target name="product-een" description="Assemble product.directory for Saxon-SA on .NET"
841
                                                                                           depends="csharp-een">
842
      <copy todir="${build-een.dir}/bin">
843
        <fileset dir="${dll-n.dir}/ee">
844
               <include name="IKVM.OpenJDK.*.dll"/>
845
          <include name="IKVM.Runtime.dll"/>
846
          <include name="saxon9ee.dll"/>
847
          <include name="saxon9ee-api.dll"/>
848
          <include name="Query.exe"/>
849
          <include name="Transform.exe"/>
850
          <include name="Validate.exe"/>
851
        </fileset> 
852
      </copy> 
853
      <echo file="${build-een.dir}/bin/install-gac.cmd">
854
                                set NET="%PROGRAMFILES%\Microsoft SDKs\Windows\v6.0A\bin"
855
                                rem -- alternative location: set NET="%PROGRAMFILES%\Microsoft.NET\SDK\v2.0\Bin"
856
                                %NET%\gacutil /if IKVM.Runtime.dll
857
                                %NET%\gacutil /if IKVM.OpenJDK.Core.dll
858
                                %NET%\gacutil /if IKVM.OpenJDK.Charsets.dll
859
                                %NET%\gacutil /if IKVM.OpenJDK.Security.dll
860
                                %NET%\gacutil /if IKVM.OpenJDK.Util.dll
861
                                %NET%\gacutil /if IKVM.OpenJDK.XML.API.dll
862
                                %NET%\gacutil /if xercesImpl.dll
863
                                %NET%\gacutil /if saxon9pe.dll 
864
                                %NET%\gacutil /if saxon9pe-api.dll              
865
      </echo>             
866
    </target>
867
    
868
    <target name="product-n" description="Assemble product.directories for Saxon on .NET"
869
                                                                                           depends="product-hen, product-pen, product-een"/>
870
       
871
    <target name="samples-n" description="Assemble release samples for .NET"
872
                  depends="csharp-hen, compile-samples-n">
873
      <mkdir dir="${build-resources.dir}/samples/cs"/>
874
      <copy todir="${build-resources.dir}/samples/cs"> 
875
        <fileset dir="${temp-src-nc.dir}/samples">
876
          <include name="*.cs"/>
877
        </fileset>
878
      </copy>
879
      <mkdir dir="${build-resources.dir}/samples/cs/bin"/>
880
      <copy todir="${build-resources.dir}/samples/cs/bin"> 
881
        <fileset dir="${dll-n.dir}/samples">
882
          <include name="*.exe"/>
883
          <include name="*.dll"/>
884
          <include name="*.pdb"/>
885
        </fileset>
886
      </copy>
887
      <copy todir="${build-resources.dir}/samples/cs/bin"> 
888
        <fileset dir="${dll-n.dir}/tests">
889
          <include name="*.exe"/>
890
          <include name="*.dll"/>
891
          <include name="*.pdb"/>
892
        </fileset>
893
      </copy>      
894
    </target>
895
    
896
    <target name="dotnetdoc-dependset">
897
      <dependset>
898
        <srcfilelist dir="${dotnetdoc.dir}" files="*.xsl"/> 
899
        <srcfilelist dir="${temp-src-nc.dir}/api/Saxon.Api" files="*.cs"/>
900
        <targetfileset dir="${dotnetdoc.dir}" includes="names.xml"/>
901
      </dependset>
902
    </target>               
903
                     
904
    <target name="product-dotnetdoc" description="Create .NET API documentation"
905
        depends="copysource-development-n, csharp-hen, dotnetdoc-dependset">
906
    <!-- Omit for maintenance builds    
907
      <taskdef name="saxon-xslt" 
908
                                 classname="net.sf.saxon.ant.AntTransform" 
909
                                 classpath="e:\saxon-build\9.1.0.7\saj\saxon9sa.jar;e:\saxon-build\9.1.0.7\bj\saxon9-ant.jar;c:\saxon-licenses"/>
910

911
      <saxon-xslt       in="${dotnetdoc.dir}/parsecs.xsl"
912
                                    style="${dotnetdoc.dir}/parsecs.xsl"
913
                                    initialTemplate="main"
914
                                    out="${dotnetdoc.dir}/names.xml"/>
915
          <saxon-xslt in="${dotnetdoc.dir}/names.xml" 
916
                                    style="${dotnetdoc.dir}/merge.xsl"
917
                                    initialTemplate="main"
918
                                    out="${dotnetdoc.dir}/merged.xml"/>
919
      <saxon-xslt in="${dotnetdoc.dir}/merged.xml" 
920
                                    style="${dotnetdoc.dir}/tohtml.xsl"
921
                                    out="${dotnetdoc.dir}/out/index.html"/>                                        
922
      
923
      <mkdir dir="${build-resources.dir}/doc/dotnetdoc"/>
924
      <copy todir="${build-resources.dir}/doc/dotnetdoc">
925
        <fileset dir="${dotnetdoc.dir}/out/html"/>
926
      </copy>
927
      <copy file="${dotnetdoc.dir}/out/index.html"
928
              tofile="${build-resources.dir}/doc/dotnetdoc/index.html"
929
              overwrite="true"/>
930
      <copy file="${userdoc.dir}/fixed/javadoc/stylesheet.css"
931
              tofile="${build-resources.dir}/doc/dotnetdoc/stylesheet.css"
932
              overwrite="true"/>
933
    -->
934
    </target>  
935
    
936
    
937
    <target name="release-userdoc-n" description="Generate User Documentation">
938
      <copy todir="${product.dir}/hen">
939
        <fileset dir="${userdoc.dir}/welcome">
940
          <include name="doc/**"/>
941
          <include name="notices/**"/>
942
        </fileset>
943
      </copy>
944
      <copy todir="${product.dir}/pen">
945
        <fileset dir="${userdoc.dir}/welcome">
946
          <include name="doc/**"/>
947
          <include name="notices/**"/>
948
        </fileset>
949
      </copy>
950
      <copy todir="${product.dir}/een">
951
        <fileset dir="${userdoc.dir}/welcome">
952
          <include name="doc/**"/>
953
          <include name="notices/**"/>
954
        </fileset>
955
      </copy>       
956
                     
957
    </target>
958
                  
959
    <target name="n" depends="product-n, samples-n"
960
                    description="Generate Saxon for the .NET platform"/>    
961
      
962
    <target name="release-n" description="Create .ZIP files for release"
963
        >  <!-- depends="build, resources"-->
964
      <mkdir dir="${issue.dir}"/> 
965
       <zip zipfile="${issue.dir}/saxonhe${versionh}n.zip">
966
        <fileset dir="${product.dir}/hen"/>
967
      </zip>                
968
      <zip zipfile="${issue.dir}/saxonpe${versionh}n.zip">
969
        <fileset dir="${product.dir}/pen"/>
970
      </zip>                    
971
      <zip zipfile="${issue.dir}/saxonee${versionh}n.zip">
972
        <fileset dir="${product.dir}/een"/>
973
      </zip>
974
    </target>
975
    
976

    
977
      
978
       
979
    
980
</project>
(3-3/4)