Project

Profile

Help

Revision 871f8c22

Added by O'Neil Delpratt almost 10 years ago

build folder added

View differences:

latest9.4/build/build-constants.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2

  
3
<project basedir="." default="all" name="Saxon: The XSLT and XQuery Processor: build constants"
4
         xmlns:dn="antlib:org.apache.ant.dotnet">
5
    
6
    <!--TODO: 1: ensure saxon9api.netmodule is included in the build
7
           2: remove the archive target before shipping this file-->
8
    
9
    <!-- note : Ant 1.7 is needed for this script -->
10
    
11
    <!-- Ant 1.7 introduces a <service> element to allow META-INF/services
12
         directories to be created in JAR files. Unfortunately it is broken,
13
         see http://issues.apache.org/bugzilla/show_bug.cgi?id=41201. The relevant
14
         code here is retained in the form of comments, and can be reinstated
15
         when the bug is fixed. Meanwhile the directories are created manually -->
16
    
17
    <!-- Build file for Saxon. This builds all six of the released products:
18
         Saxon-HE, -PE, and -EE, on both the Java and .NET platforms. It also builds
19
         the released resources file. A full build requires access to Saxonica
20
         proprietary source code. The open source Saxon-HE product can be built for
21
         Java using target "hej"; but building Saxon-HE for .NET may require some
22
         disentangling of tasks that depend on Saxon-EE code being present. -->
23
         
24
         
25
    <!-- Naming conventions:
26
         -n   : .NET
27
         -j   : Java
28
         -he  : Home Edition
29
         -pe  : Professional Edition
30
         -ee  : Enterprise Edition
31
         combined as appropriate, so -pej denotes Saxon-PE on the Java platform
32
    -->
33
    
34
    
35
    <property name="version" value="9.4.0.1"/>
36
    <property name="versionh" value="9-4-0-1"/>
37
    <property name="major.version" value="9.4"/>
38
    <property name="major.versionh" value="9-4"/>
39
    <property name="release.date" value="2011-12-9"/>
40
    
41
    <!-- REMEMBER ALSO TO SET THE VERSION IN Version.java -->
42
    
43
    <!-- following locations are specific to the machine -->
44
   
45
    <!-- Java source (used for building both the Java and .NET products) -->
46

  
47
    <property name="repository" value="../repos"/>
48
    <!--<property name="development-j.dir" value="e:/crayfish-svn/src"/>-->        
49
    <!--<property name="source-j.dir" value="${development-j.dir}"/>-->
50
    <property name="source-hej.dir" value="../hej"/>
51
    <property name="source-eej.dir" value="../eej"/>
52
    	    
53
    <!-- directory holding XML user documentation -->
54
    <property name="userdoc.dir" value="${repository}/userdoc/saxon9"/>
55
    
56
    
57
    <!-- directories holding use cases and sample applications -->
58
    <property name="usecases.dir" value="../MyJava/use-cases"/>
59
    <property name="samples.dir" value="${repository}/samples"/>
60
    
61
    <!-- directory in which to build the product for release -->
62
    <property name="product.dir" value="../saxon-build/${version}"/>
63
    
64
    <!-- directory in which to build the issued .ZIP files -->
65
    <property name="issue.dir" value="../saxon-issues/saxon-issue-${release.date} (${version})"/>
66
    	    
67
    <!-- location of the archive directory -->
68
    <property name="archive.dir" value="../archive${versionh}"/>
69
		    
70
    
71
    <!-- following locations are relative to the build file -->
72
        
73
    <property name="lib.dir" value="libs"/>
74
    <property name="temp.dir" value="temp"/>
75

  
76
	<!-- following locations are relative to the destination directory -->
77
		
78
    <property name="build-resources.dir" value="${product.dir}/resources"/> 
79
 
80
    <property name="build.debug" value="true"/>
81
    <property name="build.debuglevel" value="source,lines,vars"/>
82
    <property name="build.deprecation" value="true"/>
83
    <property name="build.optimize" value="true"/>
84
    <property name="build.compiler.source" value="1.5"/>
85
    <property name="build.compiler.target" value="1.5"/>
86
    <property name="build.compress" value="false"/>
87
    
88
 
89
    
90
</project>
latest9.4/build/build-j.xml
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
    
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="classes-j.dir" value="${temp.dir}/j/classes"/>
27
    
28
    <property name="jar-signer-certificate" value="codesigner.p12"/> 
29

  
30
    <!-- following locations are relative to the destination directory -->
31
		
32
    <property name="build-hej.dir" value="${product.dir}/hej"/> 
33
    <property name="build-pej.dir" value="${product.dir}/pej"/>  
34
    <property name="build-eej.dir" value="${product.dir}/eej"/> 
35

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

  
57

  
58
    <target name="create-meta-inf" description="Create contents of META-INF/services files">    
59
        
60
        <!-- given the Ant 1.7.0 bug, create the services files here for copying into the JARS -->
61
        <mkdir dir="${services.dir}/saxon9he/META-INF/services"/>
62
        <echo file="${services.dir}/saxon9he/META-INF/services/javax.xml.transform.TransformerFactory"
63
              message="net.sf.saxon.TransformerFactoryImpl"/>
64
        <mkdir dir="${services.dir}/saxon9he/META-INF/services"/>
65
        <!-- The peculiar format of these files is due to the bug described at
66
             http://markmail.org/message/obgfqbnrkuhzl6wl. The correct format is
67
             just to use the first line: this works for JDK 1.6. But JDK 1.5 incorrectly
68
             expects a properties file, in the form of the subsequent line. The combination
69
             works with both Java releases -->
70
        <echo file="${services.dir}/saxon9he/META-INF/services/javax.xml.xpath.XPathFactory"
71
>net.sf.saxon.xpath.XPathFactoryImpl
72
http\://java.sun.com/jaxp/xpath/dom:    net.sf.saxon.xpath.XPathFactoryImpl
73
http\://saxon.sf.net/jaxp/xpath/om:     net.sf.saxon.xpath.XPathFactoryImpl
74
</echo>
75

  
76
        <mkdir dir="${services.dir}/saxon9pe/META-INF/services"/>
77
        <echo file="${services.dir}/saxon9pe/META-INF/services/javax.xml.transform.TransformerFactory"
78
              message="com.saxonica.config.ProfessionalTransformerFactory"/> 
79
        <echo file="${services.dir}/saxon9pe/META-INF/services/javax.xml.xpath.XPathFactory"
80
>com.saxonica.config.ProfessionalXPathFactory
81
http\://java.sun.com/jaxp/xpath/dom:    com.saxonica.config.ProfessionalXPathFactory
82
http\://saxon.sf.net/jaxp/xpath/om:     com.saxonica.config.ProfessionalXPathFactory
83
http\://www.xom.nu/jaxp/xpath/xom:      com.saxonica.config.ProfessionalXPathFactory
84
http\://jdom.org/jaxp/xpath/jdom:       com.saxonica.config.ProfessionalXPathFactory
85
http\://www.dom4j.org/jaxp/xpath/dom4j: com.saxonica.config.ProfessionalXPathFactory
86
</echo>
87

  
88
               
89
        <mkdir dir="${services.dir}/saxon9ee/META-INF/services"/>
90
        <echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.transform.TransformerFactory"
91
              message="com.saxonica.config.EnterpriseTransformerFactory"/>
92
        <echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.xpath.XPathFactory"
93
>com.saxonica.config.EnterpriseXPathFactory
94
http\://java.sun.com/jaxp/xpath/dom:    com.saxonica.config.EnterpriseXPathFactory
95
http\://saxon.sf.net/jaxp/xpath/om:     com.saxonica.config.EnterpriseXPathFactory
96
http\://www.xom.nu/jaxp/xpath/xom:      com.saxonica.config.EnterpriseXPathFactory
97
http\://jdom.org/jaxp/xpath/jdom:       com.saxonica.config.EnterpriseXPathFactory
98
http\://www.dom4j.org/jaxp/xpath/dom4j: com.saxonica.config.EnterpriseXPathFactory
99
</echo>     
100
        <echo file="${services.dir}/saxon9ee/META-INF/services/javax.xml.validation.SchemaFactory"
101
>com.saxonica.jaxp.SchemaFactoryImpl
102
http\://www.w3.org/2001/XMLSchema: com.saxonica.jaxp.SchemaFactoryImpl
103
</echo>         
104
                                      
105

  
106
    </target>
107
    
108
    <target name="create-edition-properties-j" description="Create the edition.properties files for the three editions of Saxon on Java">
109
        <mkdir dir="${classes-j.dir}"/>
110
        <mkdir dir="${classes-j.dir}/he"/>
111
        <mkdir dir="${classes-j.dir}/pe"/>
112
        <mkdir dir="${classes-j.dir}/ee"/>
113
        <echo file="${classes-j.dir}/he/edition.properties"
114
>config=net.sf.saxon.Configuration
115
platform=net.sf.saxon.java.JavaPlatform
116
</echo>
117
        <echo file="${classes-j.dir}/pe/edition.properties"
118
>config=com.saxonica.config.ProfessionalConfiguration
119
platform=com.saxonica.config.JavaPlatformPE
120
</echo>
121
        <echo file="${classes-j.dir}/ee/edition.properties"
122
>config=com.saxonica.config.EnterpriseConfiguration
123
platform=com.saxonica.config.JavaPlatformPE
124
</echo>   
125
    </target> 
126
    
127
    <target name="prepare-j" depends="create-meta-inf, create-edition-properties-j"/> 
128
    
129
       
130

  
131
    <target name="copysource-development-j" description="Copy relevant source files from development directory">
132
        <copy todir="${temp-src-j.dir}">
133
          <fileset dir="${source-hej.dir}">
134
            <include name="net/sf/saxon/**/*.java"/>
135
            <include name="javax/xml/xquery/*.java"/>
136
            <exclude name="**/dotnet/**"/>
137
            <include name="net/sf/saxon/**/package.html"/>
138
          </fileset>
139
          <fileset dir="${source-eej.dir}">
140
            <include name="com/saxonica/**/*.java"/>
141
            <!--<exclude name="com/saxonica/config/DotNetVerifier.java"/>-->
142
            <exclude name="com/saxonica/config/DotNetExtensionFunctionFactory.java"/>
143
            <exclude name="com/saxonica/config/DotNetExtensionLibrary.java"/>
144
            <exclude name="com/saxonica/config/DotNetPlatformPE.java"/>
145
            <exclude name="com/saxonica/expr/DotNetExtensionFunctionCall.java"/>
146
            <include name="com/saxonica/**/package.html"/>
147
          </fileset>          
148
        </copy>            
149
    </target>    
150
        
151
    <target name="compile-j" description="Compile Saxon classes for the Java product." 
152
            depends="copysource-development-j">
153
        <mkdir dir="${classes-j.dir}"/>
154

  
155
        <javac debug="${build.debug}" debuglevel="${build.debuglevel}" 
156
            deprecation="${build.deprecation}" destdir="${classes-j.dir}"
157
            optimize="${build.optimize}" srcdir="${temp-src-j.dir}" source="${build.compiler.source}"
158
            target="${build.compiler.target}"
159
            fork="true"
160
            memoryinitialsize="256m"
161
            memorymaximumsize="256m">
162

  
163
            <include name="net/**"/>
164
            <include name="javax/xml/xquery/**"/>
165
            <include name="com/saxonica/**"/>
166
            <exclude name="**/ant/**"/>
167
            
168
            <!--<exclude name="**/dotnet/**"/>-->
169
            <!--<exclude name="com/saxonica/validate/DotNetVerifier.java"/>-->
170
            <classpath>
171
                <path refid="classpath-j"/>
172
            </classpath>
173
        </javac>
174
    </target>
175
          
176
    <target name="jar-hej" description="Create Saxon-HE jar files for Java" depends="compile-j">
177
        <mkdir dir="${product.dir}/hej"/>
178

  
179
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9he.jar">
180
            <include name="net/**/*.class"/>
181
            <exclude name="net/sf/saxon/ant/*.class"/>
182
            <exclude name="net/sf/saxon/option/**/*.class"/>
183
            <!--<exclude name="**/javax/**/*.class"/>
184
            <exclude name="**/xpath/**/*.class"/>
185
            <exclude name="**/xqj/**/*.class"/>-->
186
            <include name="javax/xml/xquery/*.class"/>
187
            <include name="META-INF/**"/>
188
            <manifest>
189
                <attribute name="Project-Name" value="Saxon-HE"/>
190
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
191
            </manifest>
192
            <metainf dir="${services.dir}/saxon9he/META-INF"/>
193
            <!--<metainf dir="${services.dir}/saxon9-xpath/META-INF"/>-->
194
            <!--
195
            <service type="javax.xml.transform.TransformerFactory"
196
                provider="net.sf.saxon.TransformerFactoryImpl"/>
197
            -->    
198
        </jar>
199
        <jar basedir="${classes-j.dir}/he" compress="${build.compress}" jarfile="${product.dir}/hej/saxon9he.jar" update="true">
200
            <include name="edition.properties"/>
201
        </jar>
202

  
203
    </target>
204
    
205
    <target name="jar-pej" description="Create Saxon-PE jar files for Java" depends="compile-j">
206
        <mkdir dir="${product.dir}/pej"/>
207
              
208
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9pe.jar">
209
            <include name="net/**/*.class"/>
210
            <exclude name="net/sf/saxon/ant/*.class"/>
211
            <exclude name="**/sql/**/*.class"/>
212
            <include name="com/saxonica/**/*.class"/>
213
            <exclude name="com/saxonica/codegen/**/*.class"/>
214
            <exclude name="com/saxonica/deploy/**/*.class"/>
215
            <exclude name="com/saxonica/fsa/**/*.class"/>
216
            <exclude name="com/saxonica/jaxp/**/**/*.class"/>
217
            <exclude name="com/saxonica/schema/**/*.class"/>
218
            <exclude name="com/saxonica/sdoc/**/*.class"/>
219
            <exclude name="com/saxonica/stream/**/*.class"/>
220
            <exclude name="com/saxonica/update/**/*.class"/>
221
            <exclude name="com/saxonica/validate/**/*.class"/>
222
            <exclude name="com/saxonica/Validate.class"/>
223
            <exclude name="com/saxonica/CompileQuery.class"/>
224
            <exclude name="com/saxonica/CompileStylesheet.class"/>
225
            <exclude name="com/saxonica/CompileStylesheet$TracingObjectOutputStream.class"/>
226
            <exclude name="com/saxonica/config/EnterpriseConfiguration.class"/>
227
            <exclude name="com/saxonica/config/EnterpriseConfiguration$SurrogateSchema.class"/>
228
            <exclude name="com/saxonica/config/EnterpriseTransformerFactory.class"/>
229
            <exclude name="com/saxonica/config/EnterpriseXPathFactory.class"/>
230
            <exclude name="com/saxonica/extra/StaticQueryContextEE.class"/>
231
            <exclude name="com/saxonica/extra/OptimizerEE.class"/>
232
            <exclude name="com/saxonica/extra/GeneralComparisonEE.class"/>
233
            <exclude name="com/saxonica/extra/MultithreadedContextMappingIterator.class"/>
234
            <exclude name="com/saxonica/extra/MultithreadedForEach.class"/>
235
            <include name="javax/xml/xquery/*.class"/>
236
            <manifest>
237
                <attribute name="Project-Name" value="Saxon-PE"/>
238
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
239
            </manifest>
240
            <metainf dir="${services.dir}/saxon9pe/META-INF"/>
241

  
242
        </jar>
243
        <jar basedir="${classes-j.dir}/pe" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9pe.jar" update="true">
244
            <include name="edition.properties"/>
245
        </jar>
246
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9-sql.jar">
247
            <include name="net/sf/saxon/option/sql/*.class"/>
248
        </jar>        
249

  
250
    </target>
251
    
252
    <target name="jar-eej" description="Create Saxon-EE jar files for Java" depends="compile-j">
253
        <mkdir dir="${product.dir}/eej"/>
254
        
255
        <copy todir="${product.dir}/eej">
256
          <fileset dir="${product.dir}/pej">
257
            <include name="saxon9-sql.jar"/>
258
          </fileset>
259
        </copy>          
260
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar">
261
            <include name="net/**/*.class"/>
262
            <exclude name="net/sf/saxon/ant/*.class"/>
263
            <exclude name="**/sql/**/*.class"/>
264
            <include name="com/saxonica/**/*.class"/>
265
            <exclude name="com/saxonica/codegen/*.class"/>
266
            <exclude name="com/saxonica/CompileQuery.class"/>
267
            <include name="javax/xml/xquery/*.class"/>
268
            <manifest>
269
                <attribute name="Project-Name" value="Saxon-EE"/>
270
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
271
            </manifest>
272
            <metainf dir="${services.dir}/saxon9ee/META-INF"/> 
273
        </jar>
274
        <jar basedir="${classes-j.dir}/ee" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar" update="true">
275
            <include name="edition.properties"/>
276
        </jar>
277
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee-qc.jar">
278
            <include name="com/saxonica/codegen/*.class"/>
279
            <include name="com/saxonica/CompileQuery.class"/>
280
        </jar>
281
        
282
        <!-- The Saxon-Ant task is delivered with Saxon-B but it won't compile without Saxon-SA present,
283
             unless modified 
284
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/bj/saxon9-ant.jar">
285
            <include name="net/sf/saxon/ant/*.class"/>
286
        </jar>-->
287
    </target>
288
    
289
    <target name="samples-j" description="Copy and Compile Java Samples"
290
    				depends="jar-eej, samples-common">
291
      <mkdir dir="${product.dir}/resources/samples/java"/>
292
      <mkdir dir="${product.dir}/resources/samples/java/classes"/>
293
      <copy todir="${product.dir}/resources/samples/java">
294
        <fileset dir="${samples.dir}/java">
295
          <include name="ApplyXPathJAXP.java"/>
296
          <include name="ExampleContentHandler.java"/>
297
          <include name="JDOMExample.java"/>
298
          <include name="PullExamples.java"/>
299
          <include name="QueryAPIExamples.java"/>
300
          <include name="QuickValidator.java"/>
301
          <include name="S9APIExamples.java"/>
302
          <include name="SaxonServlet.java"/>
303
          <include name="SaxonSAServlet.java"/>
304
          <include name="SchemaValidatorExample.java"/>
305
          <include name="SchemaValidatorHandlerExample.java"/>
306
          <include name="TraxExamples.java"/>
307
          <include name="XMarkBenchmark.java"/>
308
          <include name="XPathExample.java"/>
309
          <include name="XPathExampleDOM.java"/>
310
          <include name="XPathExampleSA.java"/>
311
          <include name="XPathExampleServlet.java"/>
312
          <include name="XQJExamples.java"/>
313
        </fileset>
314
      </copy>
315
	  <javac debug="true" debuglevel="source, lines" 
316
			      destdir="${product.dir}/resources/samples/java/classes"
317
            srcdir="${product.dir}/resources/samples/java" 
318
            source="${build.compiler.source}"
319
            target="${build.compiler.target}">
320
        <include name="*.java"/>    
321
        <classpath>
322
            <path refid="classpath-samples"/>
323
        </classpath>
324
      </javac>            
325
    </target>
326
    
327
    <target name="testdrivers-j" description="Copy Java Test Drivers">
328
    	<mkdir dir="${product.dir}/resources/drivers/java/test"/>
329
    	<mkdir dir="${product.dir}/resources/drivers/java/test/classes"/>
330
    	<copy todir="${product.dir}/resources/drivers/java/test">
331
    	  <fileset dir="${drivers-j.dir}">
332
    	    <include name="XQueryTestSuiteDriver.java"/> 
333
    	    <include name="XsltTestSuiteDriver.java"/> 
334
    	    <include name="CanonicalXML.java"/> 
335
    	    <include name="XQTSModuleURIResolver.java"/> 
336
    	    <include name="XQTSCollectionURIResolver.java"/> 
337
    	    <include name="SchemaTestSuiteDriver.java"/> 
338
          </fileset>
339
        </copy>
340
        <javac debug="true" debuglevel="source, lines" 
341
			      destdir="${product.dir}/resources/drivers/java/test/classes"
342
            srcdir="${product.dir}/resources/drivers/java" 
343
            source="${build.compiler.source}"
344
            target="${build.compiler.target}">
345
          <include name="*.java"/>    
346
          <classpath>
347
            <path refid="classpath-samples"/>
348
          </classpath>
349
        </javac>
350
    </target>           
351
    
352
                  
353
    <target name="product-javadoc" description="Generate Javadoc." depends="copysource-development-j">
354
        <javadoc bottom="Copyright (c) 2004-2010 Saxonica Limited. All rights reserved."
355
            destdir="${javadoc.dir}" doctitle="Saxon9 Java API Documentation"
356
            noindex="false" notree="false" access="protected"
357
            maxmemory="512M" source="1.5">
358
            <packageset dir="${temp-src-j.dir}">
359
                <include name="net/**"/>
360
                <include name="com/**"/>
361
                <include name="javax/xml/query/**"/>
362
                <exclude name="com/saxonica/testdriver/**"/>
363
                <exclude name="**/dotnet/**"/>
364
                <exclude name="**/DotNetVerifier.java"/>
365
            </packageset>
366
            <packageset dir="e:/javalib/xqj-final/ri/src"/>
367
            <classpath>
368
                <path refid="classpath-j"/>
369
            </classpath>
370
            
371
            <link href="http://download.oracle.com/javase/6/docs/api/"/>
372
            <link href="http://www.xom.nu/apidocs/"/>
373
            
374
            <group title="s9api Interface" packages="net.sf.saxon.s9api"/>
375
            <group title="Other Interfaces">
376
                <package name="net.sf.saxon"/>              
377
                <package name="net.sf.saxon.lib"/>
378
                <package name="net.sf.saxon.om"/>
379
                <package name="net.sf.saxon.query"/>
380
                <package name="net.sf.saxon.sxpath"/>
381
                <package name="net.sf.saxon.value"/>
382
                <package name="net.sf.saxon.type"/>
383
                <package name="net.sf.saxon.xpath"/>
384
                <package name="net.sf.saxon.xqj"/>
385
                <package name="com.saxonica.config"/>
386
                <package name="com.saxonica.jaxp"/>
387
                <package name="com.saxonica.schema"/>
388
                
389
            </group>
390
            <group title="External Interfaces">
391
                <package name="javax.xml.xquery"/>
392
            </group>
393
 
394
            
395
        </javadoc>
396
        <copy file="${userdoc.dir}/fixed/javadoc/stylesheet.css"
397
              tofile="${javadoc.dir}/stylesheet.css"
398
              overwrite="true"/>
399
    </target>
400

  
401

  
402
    <target name="signjars" depends="jar-hej, jar-pej, jar-eej, private-signjars" description="Sign all JAR files">
403
        <!-- If the private-signjars task is not available, simply delete the dependency -->
404
    </target>
405
    
406
                    
407
    <target name="j" depends="signjars"
408
        description="Generate Saxon (all three editions) for the Java platform"/>
409
        
410
    <target name="release-j" description="Create .ZIP files for release"
411
        depends="j" 
412
        >  <!-- , test-j -->
413
      <mkdir dir="${issue.dir}"/> 
414
      <zip zipfile="${issue.dir}/saxonhe${versionh}j.zip">
415
        <fileset dir="${product.dir}/hej"/>
416
      </zip>
417
      <zip zipfile="${issue.dir}/saxonpe${versionh}j.zip">
418
        <fileset dir="${product.dir}/pej"/>
419
      </zip>                     
420
	  <zip zipfile="${issue.dir}/saxonee${versionh}j.zip">
421
        <fileset dir="${product.dir}/eej"/>
422
      </zip>                     
423
     </target>    
424
       
425
    
426
</project>
latest9.4/build/build-n.xml
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="c:/saxon-svn/latest9.3/hen/csource"/>
12

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

  
66
		<!-- following locations are relative to the destination directory -->
67
		
68
    <property name="build-hen.dir" value="${product.dir}/hen"/> 
69
    <property name="build-pen.dir" value="${product.dir}/pen"/>  
70
    <property name="build-een.dir" value="${product.dir}/een"/>
71
     
72
   
73
    <!-- development source -->
74
        
75
    <property name="source-api-n.dir" value="${vss-n.dir}/api"/>
76
    <property name="source-cmd-n.dir" value="${vss-n.dir}/cmd"/>
77
    <property name="source-samples-n.dir" value="${vss-n.dir}/samples"/>        
78
           
79
    <path id="classpath-n">
80
        <fileset dir="${lib.dir}">
81
            <include name="*.jar"/>
82
        </fileset>
83
        <fileset dir="${ikvm.dir}">
84
        	 <include name="classpath/mscorlib.jar"/>
85
        	 <include name="classpath/System.jar"/>
86
        	 <include name="classpath/IKVM.Runtime.jar"/>
87
        </fileset>
88
        <fileset dir="${generated.stubs.dir}">
89
             <include name="CIL.jar"/>	 
90
        	 <include name="System.Xml.jar"/>
91
        	 <include name="System.Security.jar"/>
92
        </fileset>	 
93
    </path>
94
       
95
    
96
    <target name="prepare-libs-n" description="Prepare required libraries for .NET, specifically Xerces and TagSoup">
97
        <taskdef name="ikvmc" classname="net.ikvm.ant.IkvmcTask" classpath="..\javalib\ant-ikvmc.0.4.jar"/>
98
        <mkdir dir="${dll-n.dir}"/>
99
        <copy todir="${dll-n.dir}">
100
          <fileset dir="${ikvm.dir}/bin">
101
            <include name="IKVM.OpenJDK.*.dll"/>
102
            <include name="IKVM.Runtime.dll"/>            
103
          </fileset>
104
          <!--<fileset dir="${ikvm.dir}/openjdk/extras">
105
            <include name="charsets.dll"/>
106
          </fileset>-->
107
        </copy>
108
        <copy file="${saxondotnet.snk}" todir="${basedir}"/>
109
        <mkdir dir="${basedir}/libs/xerces"/>
110
        <unjar src="${basedir}/libs/xercesimpl.jar" dest="${basedir}/libs/xerces"/>
111
        <unjar src="${basedir}/libs/resolver.jar" dest="${basedir}/libs/xerces"/>
112
        <jar basedir="${basedir}/libs/xerces" compress="${build.compress}" jarfile="${basedir}/libs/xerces.jar">
113
            <include name="**/*.class"/>
114
            <include name="**/*.properties"/>
115
            <exclude name="org.w3c.dom.html.HTMLDOMImplementation.class"/>
116
            <exclude name="META-INF/MANIFEST.MF"/>
117
        </jar>
118
    </target>    
119
        
120
    <target name="create-edition-properties-n" description="Create the edition.properties files for the three editions of Saxon on Java">
121
        <mkdir dir="${classes-n.dir}"/>
122
        <mkdir dir="${classes-n.dir}/he"/>
123
        <mkdir dir="${classes-n.dir}/pe"/>
124
        <mkdir dir="${classes-n.dir}/ee"/>
125
        <echo file="${classes-n.dir}/he/edition.properties"
126
>config=net.sf.saxon.Configuration
127
platform=net.sf.saxon.dotnet.DotNetPlatform
128
</echo>
129
        <echo file="${classes-n.dir}/pe/edition.properties"
130
>config=com.saxonica.config.ProfessionalConfiguration
131
platform=com.saxonica.config.DotNetPlatformPE
132
</echo>
133
        <echo file="${classes-n.dir}/ee/edition.properties"
134
>config=com.saxonica.config.EnterpriseConfiguration
135
platform=com.saxonica.config.DotNetPlatformPE
136
</echo>   
137
    </target>
138
    
139
    <target name="prepare-n" depends="prepare-libs-n, create-edition-properties-n"/>
140
    
141
    
142
    <target name="copysource-development-n" description="Copy source files for Saxon on .NET from development directory">
143
        <copy todir="${temp-src-nj.dir}">
144
          <fileset dir="${source-hej.dir}">
145
            <include name="net/sf/saxon/**/*.java"/>
146
            <exclude name="**/ant/**"/>
147
            <exclude name="**/dom/**"/>
148
            <exclude name="**/dom4j/**"/>
149
            <exclude name="**/java/**"/>
150
            <exclude name="**/jdom/**"/>
151
            <exclude name="**/s9api/**"/>
152
            <exclude name="**/sql/**"/>
153
            <exclude name="**/xom/**"/>
154
            <exclude name="**/xpath/**"/>
155
            <exclude name="**/xqj/**"/>
156
          </fileset>
157
          <fileset dir="${source-eej.dir}">
158
            <include name="com/saxonica/**/*.java"/>  
159
            <exclude name="com/saxonica/CompileQuery.java"/>
160
            <exclude name="com/saxonica/CompileStylesheet.java"/>
161
            <exclude name="com/saxonica/codegen/*.java"/> 
162
            <exclude name="com/saxonica/deploy/*.java"/>
163
            <exclude name="com/saxonica/testdriver/*.java"/> 
164
            <exclude name="com/saxonica/jaxp/*.java"/>            
165
          </fileset>          
166
        </copy>
167
        <copy todir="${temp-src-nc.dir}/api">
168
          <fileset dir="${source-api-n.dir}">
169
            <include name="Saxon.Api/*.cs"/>
170
            <!--<include name="Saxon.Api/Properties/AssemblyInfo.cs"/>-->
171
          </fileset>
172
        </copy>
173
        <mkdir dir="${temp-src-nc.dir}/api/Saxon.Api/Properties"/>
174
        <echo file="${temp-src-nc.dir}/api/Saxon.Api/Properties/AssemblyInfo.cs">
175
		  using System.Reflection;
176
          using System.Runtime.CompilerServices;
177
          using System.Runtime.InteropServices;
178
          [assembly: AssemblyTitle("Saxon.Api")]
179
          [assembly: AssemblyDescription("")]
180
          [assembly: AssemblyConfiguration("")]
181
          [assembly: AssemblyCompany("Saxonica")]
182
          [assembly: AssemblyProduct("Saxon.Api")]
183
          [assembly: AssemblyCopyright("Copyright © Saxonica 2010")]
184
          [assembly: AssemblyTrademark("")]
185
          [assembly: AssemblyCulture("")]
186
          [assembly: ComVisible(false)]
187
          [assembly: Guid("8cf9aad8-da5f-47f0-9251-1fbcbdcfe477")]
188
          [assembly: AssemblyVersion("${version}")]
189
          [assembly: AssemblyFileVersion("${version}")]
190
        </echo>
191
        <mkdir dir="${temp-src-nc.dir}/cmd"/>
192
        <copy todir="${temp-src-nc.dir}/cmd">
193
          <fileset dir="${source-cmd-n.dir}">
194
            <include name="**/Transform.cs"/>
195
            <include name="**/Query.cs"/>
196
            <include name="**/Validate.cs"/>
197
          </fileset>
198
        </copy>
199
        
200
       
201
        <copy todir="${temp-src-nc.dir}/samples">
202
          <fileset dir="${source-samples-n.dir}">
203
            <include name="*.cs"/>
204
          </fileset>
205
        </copy>
206
    </target>
207
                      
208
    <target name="compile-n" description="Compile Saxon Java classes for the .NET product" 
209
            depends="copysource-development-n">
210
        <mkdir dir="${classes-n.dir}"/>
211
        <mkdir dir="${classes-n.dir}/he"/>
212
        <mkdir dir="${classes-n.dir}/pe"/>
213
        <mkdir dir="${classes-n.dir}/ee"/>
214
        <echo message="Compile with debug = ${build.debug}, debuglevel = ${build.debuglevel}"/>
215
        <javac debug="${build.debug}" debuglevel="${build.debuglevel}" 
216
            deprecation="${build.deprecation}" destdir="${classes-n.dir}"
217
            optimize="${build.optimize}" srcdir="${temp-src-nj.dir}" source="${build.compiler.source}"
218
            target="${build.compiler.target}">
219

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

  
424
		<mkdir dir="${dll-n.dir}/he"/>
425
		
426
		<copy todir="${dll-n.dir}/he">
427
            <fileset dir="${dll-n.dir}">
428
         	  <include name="IKVM.OpenJDK.Core.dll"/>
429
         	  <include name="IKVM.OpenJDK.Charsets.dll"/>
430
         	  <include name="IKVM.OpenJDK.Text.dll"/>
431
         	  <include name="IKVM.OpenJDK.Util.dll"/>
432
         	  <include name="IKVM.OpenJDK.XML.API.dll"/>
433
         	  <include name="xercesImpl.dll"/>
434
              <include name="IKVM.Runtime.dll"/>
435
              <!--<include name="IKVM.OpenJDK.Charsets.dll"/>-->
436
              <include name="saxon9he.dll"/>
437
            </fileset>
438
        </copy>
439
		
440
		<!-- API library DLL -->
441
		
442
		<dn:csc targetType="library" outputFile="${basedir}/${dll-n.dir}/he/saxon9he-api.dll"
443
		     docFile="${dotnetdoc.dir}/apidoc.xml"
444
		     extraOptions="-keyfile:${saxondotnet.snk}"
445
		     executable="${csharp.compiler}">
446
		     <src dir="${basedir}/${temp-src-nc.dir}/api/Saxon.Api" includes="*.cs Properties/AssemblyInfo.cs"/>
447
		     <reference dir="${basedir}/${dll-n.dir}/he">
448
		        <!--<include name="charsets.dll"/>-->
449
		        <include name="IKVM.OpenJDK.Core.dll"/>
450
         	    <include name="IKVM.OpenJDK.Charsets.dll"/>
451
         	    <include name="IKVM.OpenJDK.Text.dll"/>
452
         	    <include name="IKVM.OpenJDK.Util.dll"/>
453
         	    <include name="IKVM.OpenJDK.XML.API.dll"/>
454
         	    <include name="xercesImpl.dll"/>
455
		        <include name="IKVM.Runtime.dll"/>
456
		        <include name="saxon9he.dll"/>
457
		     </reference>
458
		</dn:csc>
459
		
460
		<!-- Transform, Query, Validate commands -->
461
		
462
		<echo file="${basedir}/${temp-src-nc.dir}/cmd/AssemblyInfo.cs">
463
		  using System.Reflection;
464
          using System.Runtime.CompilerServices;
465
          using System.Runtime.InteropServices;
466
          [assembly: AssemblyCompany("Saxonica")]
467
          [assembly: AssemblyProduct("Saxon.HE")]
468
          [assembly: AssemblyCopyright("Copyright © Saxonica 2010")]
469
          [assembly: AssemblyVersion("${version}")]
470
          [assembly: AssemblyFileVersion("${version}")]
471
        </echo>
472
		
473
		<dn:csc targetType="exe" 
474
		     win32icon="${development-ikvm.dir}\icons\gyfu.ico"
475
		     outputFile="${basedir}/${dll-n.dir}/he/Transform.exe"
476
		     extraOptions="-keyfile:${saxondotnet.snk}"
477
		     executable="${csharp.compiler}">
478
		     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Transform.cs AssemblyInfo.cs"/>
479
		     <reference dir="${basedir}/${dll-n.dir}/he">
480
		        <include name="IKVM.OpenJDK.Core.dll"/>
481
         	    <include name="IKVM.OpenJDK.Charsets.dll"/>
482
         	    <include name="IKVM.OpenJDK.Text.dll"/>
483
         	    <include name="IKVM.OpenJDK.Util.dll"/>
484
         	    <include name="IKVM.OpenJDK.XML.API.dll"/>
485
         	    <include name="xercesImpl.dll"/>
486
		        <include name="IKVM.Runtime.dll"/>
487
		        <!--<include name="charsets.dll"/>-->
488
		        <include name="saxon9he.dll"/>
489
		     </reference>
490
		</dn:csc>
491
		
492
		<dn:csc targetType="exe" win32icon="${development-ikvm.dir}\icons\gyfu.ico"
493
		     outputFile="${basedir}/${dll-n.dir}/he/Query.exe"
494
		     extraOptions="-keyfile:${saxondotnet.snk}"
495
		     executable="${csharp.compiler}">
496
		     <src dir="${basedir}/${temp-src-nc.dir}/cmd" includes="Query.cs AssemblyInfo.cs"/>
497
		     <reference dir="${basedir}/${dll-n.dir}/he">
498
		        <include name="IKVM.OpenJDK.Core.dll"/>
499
         	    <include name="IKVM.OpenJDK.Charsets.dll"/>
500
         	    <include name="IKVM.OpenJDK.Text.dll"/>
501
         	    <include name="IKVM.OpenJDK.Util.dll"/>
502
         	    <include name="IKVM.OpenJDK.XML.API.dll"/>
503
         	    <include name="xercesImpl.dll"/>
504
		        <include name="IKVM.Runtime.dll"/>
505
		        <!--<include name="charsets.dll"/>-->
506
		        <include name="saxon9he.dll"/>
507
		     </reference>
508
		</dn:csc>
509
		
510
    </target>
511
    
512
    <target name="csharp-pen" description="Compile C# source for .NET commands and API library (PE)"
513
            xmlns:dn="antlib:org.apache.ant.dotnet" depends="dll-n"
514
        > <!---->
515
        
516
        <taskdef 
517
            uri="antlib:org.apache.ant.dotnet">
518
            <classpath>
519
              <pathelement location="e:/javalib/ant-dotnet-1.0/ant-dotnet-1.0.jar"/>
520
            </classpath>
521
          </taskdef>
522

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

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

  
732
       <taskdef 
733
            uri="antlib:org.apache.ant.dotnet">
734
            <classpath>
735
              <pathelement location="e:/javalib/ant-dotnet-1.0/ant-dotnet-1.0.jar"/>
736
            </classpath>
737
          </taskdef>
738

  
739
		<mkdir dir="${dll-n.dir}/samples"/>
740
		<mkdir dir="${dll-n.dir}/tests"/>
741
		
742
		<!-- Sample applications and test drivers -->
743
		
744
		<dn:csc targetType="exe"
745
		     outputFile="${basedir}/${dll-n.dir}/samples/ExamplesHE.exe"
746
		     win32icon="${development-ikvm.dir}\icons\csharp.ico"
747
		     debug="true"
748
		     executable="${csharp.compiler}">
749
		     <src dir="${basedir}/${temp-src-nc.dir}/samples" includes="ExamplesHE.cs"/>
750
		     <reference dir="${basedir}/${dll-n.dir}/he">
751
		        <include name="IKVM.OpenJDK.*.dll"/>
752
		        <include name="saxon9he-api.dll"/>
753
		     </reference>
754
		</dn:csc>
755
		
756
		<dn:csc targetType="exe"
757
		     outputFile="${basedir}/${dll-n.dir}/samples/ExamplesPE.exe"
758
		     win32icon="${development-ikvm.dir}\icons\csharp.ico"
759
		     debug="true"
760
		     executable="${csharp.compiler}">
761
		     <src dir="${basedir}/${temp-src-nc.dir}/samples" includes="ExamplesPE.cs SampleExtensions.cs"/>
762
		     <reference dir="${basedir}/${dll-n.dir}/pe">
763
		        <include name="IKVM.OpenJDK.*.dll"/>
764
		        <include name="saxon9pe-api.dll"/>
765
		        <include name="saxon9pe.dll"/>
766
		     </reference>
767
		</dn:csc>
768
		
769
		<dn:csc targetType="exe"
770
		     outputFile="${basedir}/${dll-n.dir}/samples/ExamplesEE.exe"
771
		     win32icon="${development-ikvm.dir}\icons\csharp.ico"
772
		     debug="true"
773
		     executable="${csharp.compiler}">
774
		     <src dir="${basedir}/${temp-src-nc.dir}/samples" includes="ExamplesEE.cs SampleExtensions.cs"/>
775
		     <reference dir="${basedir}/${dll-n.dir}/ee">
776
		        <include name="IKVM.OpenJDK.*.dll"/>
777
		        <include name="saxon9ee-api.dll"/>
778
		        <include name="saxon9ee.dll"/>
779
		     </reference>
780
		</dn:csc>
781
			
782
		<dn:csc targetType="winexe"
783
		     outputFile="${basedir}/${dll-n.dir}/samples/TestRunner.exe"
784
		     win32icon="${development-ikvm.dir}\icons\csharp.ico"
785
		     debug="true"
786
		     executable="${csharp.compiler}">
787
		     <src dir="${basedir}/${temp-src-nc.dir}/samples">
788
		       <include name="TestRunnerForm.cs"/>
789
		       <include name="TestRunnerForm.Designer.cs"/>
790
		       <include name="TestRunnerProgram.cs"/>
791
		       <include name="XsltTestSuiteDriver.cs"/>
792
		       <include name="XQueryTestSuiteDriver.cs"/>
793
		       <include name="SchemaTestSuiteDriver.cs"/>
794
		       <include name="IFeedbackListener.cs"/>
795
		       <include name="FileComparer.cs"/>
796
		     </src>
797
		     <reference dir="${basedir}/${dll-n.dir}/ee">
798
		        <include name="IKVM.OpenJDK.*.dll"/>
799
		        <include name="saxon9ee-api.dll"/>
800
		     </reference>
801
		</dn:csc>				
802
		
803
				      
804

  
805
    </target>
806
    
807
    <target name="product-hen" description="Assemble product.directory for Saxon-HE on .NET"
808
       										    depends="csharp-hen">
809
      <mkdir dir="${build-hen.dir}/bin"/> 										    
810
      <copy todir="${build-hen.dir}/bin">
811
        <fileset dir="${dll-n.dir}/he">
812
     	  <include name="IKVM.OpenJDK.*.dll"/>
813
          <include name="IKVM.Runtime.dll"/>
814
          <include name="saxon9he.dll"/>
815
          <include name="saxon9he-api.dll"/>
816
          <include name="Query.exe"/>
817
          <include name="Transform.exe"/>
818
        </fileset>
819
      </copy>
820

  
821
    </target>
822
    
823
    <target name="product-pen" description="Assemble product.directory for Saxon-PE on .NET"
824
       										    depends="csharp-pen">
825
      <mkdir dir="${build-pen.dir}/bin"/> 										    
826
      <copy todir="${build-pen.dir}/bin">
827
        <fileset dir="${dll-n.dir}/pe">
828
     	  <include name="IKVM.OpenJDK.*.dll"/>
829
          <include name="IKVM.Runtime.dll"/>
830
          <include name="saxon9pe.dll"/>
831
          <include name="saxon9pe-api.dll"/>
832
          <include name="Query.exe"/>
833
          <include name="Transform.exe"/>
834
        </fileset>
835
      </copy>
836

  
837
    </target>
838
    
839
    <target name="product-een" description="Assemble product.directory for Saxon-SA on .NET"
840
       										    depends="csharp-een">
841
      <copy todir="${build-een.dir}/bin">
842
        <fileset dir="${dll-n.dir}/ee">
843
     	  <include name="IKVM.OpenJDK.*.dll"/>
844
          <include name="IKVM.Runtime.dll"/>
845
          <include name="saxon9ee.dll"/>
846
          <include name="saxon9ee-api.dll"/>
847
          <include name="Query.exe"/>
848
          <include name="Transform.exe"/>
849
          <include name="Validate.exe"/>
850
        </fileset> 
851
      </copy> 
852

  
853
    </target>
854
    
855
    <target name="product-n" description="Assemble product.directories for Saxon on .NET"
856
       										    depends="product-hen, product-pen, product-een">
857
       										    
858
       <!-- Following steps are for diagnostics only, they can be omitted if Powershell is not available -->
859
       										    
860
       <exec executable="c:/windows/system32/WindowsPowerShell/v1.0/powershell.exe">
861
		  <arg line="tools/list-dependencies.ps1"/>
862
		  <arg line="${build-hen.dir}/bin"/>
863
	   </exec>
864
	   
865
	   <exec executable="c:/windows/system32/WindowsPowerShell/v1.0/powershell.exe">
866
		  <arg line="tools/list-dependencies.ps1"/>
867
		  <arg line="${build-pen.dir}/bin"/>
868
	   </exec>
869
	   
870
	   <exec executable="c:/windows/system32/WindowsPowerShell/v1.0/powershell.exe">
871
		  <arg line="tools/list-dependencies.ps1"/>
872
		  <arg line="${build-een.dir}/bin"/>
873
	   </exec>
874
	   
875
	</target>      										    
876
       
877
    <target name="samples-n" description="Assemble release samples for .NET"
878
                  depends="csharp-hen, compile-samples-n">
879
      <mkdir dir="${build-resources.dir}/samples/cs"/>
880
      <copy todir="${build-resources.dir}/samples/cs"> 
881
        <fileset dir="${temp-src-nc.dir}/samples">
882
          <include name="*.cs"/>
883
        </fileset>
884
      </copy>
885
      <mkdir dir="${build-resources.dir}/samples/cs/bin"/>
886
      <copy todir="${build-resources.dir}/samples/cs/bin"> 
887
        <fileset dir="${dll-n.dir}/samples">
888
          <include name="*.exe"/>
889
          <include name="*.dll"/>
890
          <include name="*.pdb"/>
891
        </fileset>
892
      </copy>
893
      <copy todir="${build-resources.dir}/samples/cs/bin"> 
894
        <fileset dir="${dll-n.dir}/tests">
895
          <include name="*.exe"/>
896
          <include name="*.dll"/>
897
          <include name="*.pdb"/>
898
        </fileset>
899
      </copy>      
900
    </target>
901
    
902
    <target name="dotnetdoc-dependset">
903
      <dependset>
904
        <srcfilelist dir="${dotnetdoc.dir}" files="*.xsl"/> 
905
        <srcfilelist dir="${temp-src-nc.dir}/api/Saxon.Api" files="*.cs"/>
906
        <targetfileset dir="${dotnetdoc.dir}" includes="names.xml"/>
907
      </dependset>
908
    </target>               
909
                     
910
    <target name="product-dotnetdoc" description="Create .NET API documentation"
911
        depends="copysource-development-n, csharp-hen, dotnetdoc-dependset">
912
      <taskdef name="saxon-xslt" 
913
			         classname="net.sf.saxon.ant.AntTransform" 
914
			         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"/>
915

  
916
      <saxon-xslt       in="${dotnetdoc.dir}/parsecs.xsl"
917
			            style="${dotnetdoc.dir}/parsecs.xsl"
918
			            initialTemplate="main"
919
			            out="${dotnetdoc.dir}/names.xml"/>
920
	  <saxon-xslt in="${dotnetdoc.dir}/names.xml" 
921
			            style="${dotnetdoc.dir}/merge.xsl"
922
			            initialTemplate="main"
923
			            out="${dotnetdoc.dir}/merged.xml"/>
924
      <saxon-xslt in="${dotnetdoc.dir}/merged.xml" 
925
			            style="${dotnetdoc.dir}/tohtml.xsl"
926
			            out="${dotnetdoc.dir}/out/index.html"/>	            	            
927
      
928
      <mkdir dir="${build-resources.dir}/doc/dotnetdoc"/>
929
      <copy todir="${build-resources.dir}/doc/dotnetdoc">
930
        <fileset dir="${dotnetdoc.dir}/out/html"/>
931
      </copy>
932
      <copy file="${dotnetdoc.dir}/out/index.html"
933
              tofile="${build-resources.dir}/doc/dotnetdoc/index.html"
934
              overwrite="true"/>
935
      <copy file="${userdoc.dir}/fixed/javadoc/stylesheet.css"
936
              tofile="${build-resources.dir}/doc/dotnetdoc/stylesheet.css"
937
              overwrite="true"/>
938
    </target>  
939
    
940
    
941
    <target name="release-userdoc-n" description="Generate User Documentation">
942
      <copy todir="${product.dir}/hen">
943
        <fileset dir="${userdoc.dir}/welcome">
944
          <include name="doc/**"/>
945
          <include name="notices/**"/>
946
          <exclude name="notices/APACHE-TAGSOUP.txt"/>
947
        </fileset>
948
      </copy>
949
      <copy todir="${product.dir}/pen">
950
        <fileset dir="${userdoc.dir}/welcome">
951
          <include name="doc/**"/>
952
          <include name="notices/**"/>
953
        </fileset>
954
      </copy>
955
      <copy todir="${product.dir}/een">
956
        <fileset dir="${userdoc.dir}/welcome">
957
          <include name="doc/**"/>
958
          <include name="notices/**"/>
959
        </fileset>
960
      </copy>       
961
		     
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff