Project

Profile

Help

Revision 90ee0d1a

Added by Michael Kay over 11 years ago

made a copy

View differences:

.gitignore
1 1
latest8.9/bj/Saxon8.9.0.x.iml
2 2
latest9.2/build/libs
3 3
latest9.2/build/temp
4
tags/9.2.0.5/build/libs
5
tags/9.2.0.5/build/temp
tags/9.2.0.5/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
    <!-- note : Ant 1.7 is needed for this script -->
7
    
8
    <!-- Ant 1.7 introduces a <service> element to allow META-INF/services
9
         directories to be created in JAR files. Unfortunately it is broken,
10
         see http://issues.apache.org/bugzilla/show_bug.cgi?id=41201. The relevant
11
         code here is retained in the form of comments, and can be reinstated
12
         when the bug is fixed. Meanwhile the directories are created manually -->
13
    
14
    <!-- Build file for Saxon. This builds all six for the released products:
15
         Saxon-HE, -PE, and -EE, on both the Java and .NET platforms. It also builds
16
         the released resources file. A full build requires access to Saxonica
17
         proprietary source code. The open source Saxon-HE product can be built for
18
         Java using target "hej"; but building Saxon-HE for .NET may require some
19
         disentangling of tasks that depend on Saxon-EE code being present. -->           
20
         
21
    <!-- Naming conventions:
22
         -n   : .NET
23
         -j   : Java
24
         -he  : Home Edition
25
         -pe  : Professional Edition
26
         -ee  : Enterprise Edition
27
         combined as appropriate, so -pej denotes Saxon-PE on the Java platform
28
    -->
29
    
30
    
31
    <property name="version" value="9.2.0.5"/>
32
    <property name="versionh" value="9-2-0-5"/>
33
    <property name="release.date" value="2010-01-27"/>
34
    
35
    <!-- REMEMBER ALSO TO SET THE VERSION IN AssemblyInfo.cs and Version.java -->
36
    
37
    <!-- following locations are specific to the machine -->
38

  
39
    <!-- root drive -->
40
    <property name="root" value="c:"/>
41
    
42
    <!-- root drive for built files -->
43
    <property name="oroot" value="e:"/>
44
    
45
    
46
    <!-- Root directory for open source Java code -->        
47
    <property name="source-hej.dir" value="../hej"/>
48
    
49
    <!-- Root directory for Saxonica-proprietary Java code -->        
50
    <property name="source-eej.dir" value="${root}/saxon-sa-svn/latest9.2/eej"/>
51
    
52
    <!-- Root directory for all .NET code -->        
53
    <property name="source-n.dir" value="../hen"/>
54
    
55
    <property name="source-api-n.dir" value="${source-n.dir}/csource/api"/>
56
    <property name="source-cmd-n.dir" value="${source-n.dir}/csource/cmd"/>
57
    <property name="source-samples-n.dir" value="${source-n.dir}/csource/samples"/>     
58
    
59
 
60
    	    
61
    <!-- directory holding XML user documentation -->
62
    <property name="userdoc.dir" value="${root}/MyJava/doc/saxon8"/>
63
    
64
    
65
    <!-- directories holding use cases and sample applications -->
66
    <property name="usecases.dir" value="${root}/MyJava/use-cases"/>
67
    <property name="samples.dir" value="${root}/MyJava/samples"/>
68
    
69
    <!-- directory in which to build the product for release -->
70
    <property name="product.dir" value="${oroot}/saxon-build/${version}"/>
71
    
72
    <!-- directory in which to build the issued .ZIP files -->
73
    <property name="issue.dir" value="${oroot}/saxon-issues/saxon-issue-${release.date} (${version})"/>
74
    	    
75
    <!-- location of the archive directory -->
76
    <property name="archive.dir" value="${oroot}/archive${versionh}"/>
77
		    
78
    
79
    <!-- following locations are relative to the build file -->
80
        
81
    <property name="lib.dir" value="libs"/>
82
    <property name="temp.dir" value="temp"/>
83

  
84
	<!-- following locations are relative to the destination directory -->
85
		
86
    <property name="build-resources.dir" value="${product.dir}/resources"/> 
87
 
88
    <property name="build.debug" value="true"/>
89
    <property name="build.debuglevel" value="source,lines,vars"/>
90
    <property name="build.deprecation" value="true"/>
91
    <property name="build.optimize" value="true"/>
92
    <property name="build.compiler.source" value="1.5"/>
93
    <property name="build.compiler.target" value="1.5"/>
94
    <property name="build.compress" value="false"/>
95
    
96
 
97
    
98
</project>
tags/9.2.0.5/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="${root}/MyJava/build/build-j-signer.xml"/>   		        
15
    
16
    
17
    <!-- directory holding Java test drivers -->
18
    <property name="drivers-j.dir" value="${root}/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.ProfessionalXPathFactory
95
http\://saxon.sf.net/jaxp/xpath/om:     com.saxonica.config.ProfessionalXPathFactory
96
http\://www.xom.nu/jaxp/xpath/xom:      com.saxonica.config.ProfessionalXPathFactory
97
http\://jdom.org/jaxp/xpath/jdom:       com.saxonica.config.ProfessionalXPathFactory
98
http\://www.dom4j.org/jaxp/xpath/dom4j: com.saxonica.config.ProfessionalXPathFactory
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/extra/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

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

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

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

  
237
        </jar>
238
        <jar basedir="${classes-j.dir}/pe" compress="${build.compress}" jarfile="${product.dir}/pej/saxon9pe.jar" update="true">
239
            <include name="edition.properties"/>
240
        </jar>
241
                
242

  
243
    </target>
244
    
245
    <target name="jar-eej" description="Create Saxon-EE jar files for Java" depends="compile-j">
246
        <mkdir dir="${product.dir}/eej"/>
247
        
248
        <copy todir="${product.dir}/eej">
249
          <fileset dir="${product.dir}/pej">
250
            <include name="saxon9-sql.jar"/>
251
          </fileset>
252
        </copy>          
253
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar">
254
            <include name="net/**/*.class"/>
255
            <exclude name="net/sf/saxon/ant/*.class"/>
256
            <exclude name="**/sql/**/*.class"/>
257
            <include name="com/saxonica/**/*.class"/>
258
            <exclude name="com/saxonica/codegen/*.class"/>
259
            <exclude name="com/saxonica/CompileQuery.class"/>
260
            <include name="javax/xml/xquery/*.class"/>
261
            <manifest>
262
                <attribute name="Project-Name" value="Saxon-EE"/>
263
                <attribute name="Main-Class" value="net.sf.saxon.Transform"/>
264
            </manifest>
265
            <metainf dir="${services.dir}/saxon9ee/META-INF"/> 
266
        </jar>
267
        <jar basedir="${classes-j.dir}/ee" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee.jar" update="true">
268
            <include name="edition.properties"/>
269
        </jar>
270
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9ee-qc.jar">
271
            <include name="com/saxonica/codegen/*.class"/>
272
            <include name="com/saxonica/CompileQuery.class"/>
273
        </jar>
274
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/eej/saxon9-sql.jar">
275
            <include name="net/sf/saxon/option/sql/*.class"/>
276
        </jar>
277
        <!-- The Saxon-Ant task is delivered with Saxon-B but it won't compile without Saxon-SA present,
278
             unless modified 
279
        <jar basedir="${classes-j.dir}" compress="${build.compress}" jarfile="${product.dir}/bj/saxon9-ant.jar">
280
            <include name="net/sf/saxon/ant/*.class"/>
281
        </jar>-->
282
    </target>
283
    
284
    <target name="samples-j" description="Copy and Compile Java Samples"
285
    				depends="jar-eej, samples-common">
286
      <mkdir dir="${product.dir}/resources/samples/java"/>
287
      <mkdir dir="${product.dir}/resources/samples/java/classes"/>
288
      <copy todir="${product.dir}/resources/samples/java">
289
        <fileset dir="${samples.dir}/java">
290
          <include name="ApplyXPathJAXP.java"/>
291
          <include name="ExampleContentHandler.java"/>
292
          <include name="JDOMExample.java"/>
293
          <include name="PullExamples.java"/>
294
          <include name="QueryAPIExamples.java"/>
295
          <include name="QuickValidator.java"/>
296
          <include name="S9APIExamples.java"/>
297
          <include name="SaxonServlet.java"/>
298
          <include name="SaxonSAServlet.java"/>
299
          <include name="SchemaValidatorExample.java"/>
300
          <include name="SchemaValidatorHandlerExample.java"/>
301
          <include name="TraxExamples.java"/>
302
          <include name="XMarkBenchmark.java"/>
303
          <include name="XPathExample.java"/>
304
          <include name="XPathExampleDOM.java"/>
305
          <include name="XPathExampleSA.java"/>
306
          <include name="XPathExampleServlet.java"/>
307
          <include name="XQJExamples.java"/>
308
        </fileset>
309
      </copy>
310
			<javac debug="true" debuglevel="source, lines" 
311
			      destdir="${product.dir}/resources/samples/java/classes"
312
            srcdir="${product.dir}/resources/samples/java" 
313
            source="${build.compiler.source}"
314
            target="${build.compiler.target}">
315
        <include name="*.java"/>    
316
        <classpath>
317
            <path refid="classpath-samples"/>
318
        </classpath>
319
     </javac>            
320
    </target>
321
    
322
    <target name="testdrivers-j" description="Copy Java Test Drivers">
323
			<mkdir dir="${product.dir}/resources/drivers/java/test"/>
324
			<copy todir="${product.dir}/resources/drivers/java/test">
325
			  <fileset dir="${drivers-j.dir}">
326
			    <include name="XQueryTestSuiteDriver.java"/> 
327
			    <include name="XsltTestSuiteDriver.java"/> 
328
			    <include name="CanonicalXML.java"/> 
329
			    <include name="XQTSModuleURIResolver.java"/> 
330
			    <include name="XQTSCollectionURIResolver.java"/> 
331
			    <include name="SchemaTestSuiteDriver.java"/> 
332
        </fileset>
333
      </copy>
334
    </target>           
335
    
336
                  
337
    <target name="product-javadoc" description="Generate Javadoc." depends="copysource-development-j">
338
    <!-- Omit for maintenance builds
339
        <javadoc bottom="Copyright (c) Saxonica Limited. All rights reserved."
340
            destdir="${javadoc.dir}" doctitle="saxon9 Javadocs"
341
            noindex="true" notree="true" access="protected"
342
            maxmemory="512M" source="1.5">
343
            <packageset dir="${temp-src-j.dir}">
344
                <include name="net/**"/>
345
                <include name="com/**"/>
346
                <exclude name="**/dotnet/**"/>
347
                <exclude name="**/DotNetVerifier.java"/>
348
            </packageset>
349
            <classpath>
350
                <path refid="classpath-j"/>
351
            </classpath>
352
            
353
            <link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
354
            <link href="http://www.xom.nu/apidocs/"/>
355
            
356
        </javadoc>
357
        <copy file="${userdoc.dir}/fixed/javadoc/stylesheet.css"
358
              tofile="${javadoc.dir}/stylesheet.css"
359
              overwrite="true"/>
360
    -->
361
    </target>
362

  
363

  
364
    <target name="signjars" depends="jar-hej, jar-pej, jar-eej, private-signjars" description="Sign all JAR files">
365
        <!-- If the private-signjars task is not available, simply delete the dependency -->
366
    </target>
367
        
368
                    
369
    <target name="j" depends="signjars"
370
        description="Generate Saxon (all three editions) for the Java platform"/>
371
       
372
    
373
</project>
tags/9.2.0.5/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="${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>
tags/9.2.0.5/build/build.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2

  
3
<project basedir="." default="all" name="Saxon: The XSLT and XQuery Processor"
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
    
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff