Project

Profile

Help

Revision a76701a1

Added by Michael Kay over 11 years ago

Fix bug 2992628 install-gac.cmd script for Saxon-EE is incomplete (in build script only)

View differences:

latest9.2/build/build-n.xml
860 860
				%NET%\gacutil /if IKVM.OpenJDK.Util.dll
861 861
				%NET%\gacutil /if IKVM.OpenJDK.Text.dll
862 862
				%NET%\gacutil /if IKVM.OpenJDK.XML.API.dll
863
				%NET%\gacutil /if xercesImpl.dll
864 863
				%NET%\gacutil /if saxon9he.dll 
865 864
				%NET%\gacutil /if saxon9he-api.dll                
866 865
      </echo> 
......
889 888
				%NET%\gacutil /if IKVM.OpenJDK.Util.dll
890 889
				%NET%\gacutil /if IKVM.OpenJDK.Text.dll
891 890
				%NET%\gacutil /if IKVM.OpenJDK.XML.API.dll
892
				%NET%\gacutil /if xercesImpl.dll
893 891
				%NET%\gacutil /if saxon9pe.dll 
894 892
				%NET%\gacutil /if saxon9pe-api.dll                
895 893
      </echo> 
......
918 916
				%NET%\gacutil /if IKVM.OpenJDK.Util.dll
919 917
				%NET%\gacutil /if IKVM.OpenJDK.Text.dll
920 918
				%NET%\gacutil /if IKVM.OpenJDK.XML.API.dll
921
				%NET%\gacutil /if xercesImpl.dll
922
				%NET%\gacutil /if saxon9pe.dll 
923
				%NET%\gacutil /if saxon9pe-api.dll              
919
				%NET%\gacutil /if saxon9ee.dll 
920
				%NET%\gacutil /if saxon9ee-api.dll              
924 921
      </echo>             
925 922
    </target>
926 923
    
latest9.2/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
    <!-- How to do a maintenance build 
7
    
8
         1. Run with target "prepare"
9
         2. Run with target "build"
10
         3. Copy DLLs to the GAC using Control Panel
11
         4. Run with target "release" -->
12
    
13
    <!-- note : Ant 1.7 is needed for this script -->
14
    
15
    <!-- Ant 1.7 introduces a <service> element to allow META-INF/services
16
         directories to be created in JAR files. Unfortunately it is broken,
17
         see http://issues.apache.org/bugzilla/show_bug.cgi?id=41201. The relevant
18
         code here is retained in the form of comments, and can be reinstated
19
         when the bug is fixed. Meanwhile the directories are created manually -->
20
    
21
    <!-- Build file for Saxon. This builds all six for the released products:
22
         Saxon-HE, -PE, and -EE, on both the Java and .NET platforms. It also builds
23
         the released resources file. A full build requires access to Saxonica
24
         proprietary source code. The open source Saxon-HE product can be built for
25
         Java using target "hej"; but building Saxon-HE for .NET may require some
26
         disentangling of tasks that depend on Saxon-EE code being present. -->
27
         
28
    <!-- Useful targets:
29
    
30
         prepare      clears temporary directories, generates fixed files
31
         j            builds executables for Saxon on Java
32
         n            builds executables for Saxon on .NET
33
         build        builds all executables
34
         resources    builds samples and documentation
35
         release      builds ZIP files for published downloads, runs regression tests
36
         archive      produces a back-up archive  -->
37
             
38
         
39
    <!-- Naming conventions:
40
         -n   : .NET
41
         -j   : Java
42
         -he  : Home Edition
43
         -pe  : Professional Edition
44
         -ee  : Enterprise Edition
45
         combined as appropriate, so -pej denotes Saxon-PE on the Java platform
46
    -->
47
    
48
    <import file="build-constants.xml"/>
49
    
50
    <!-- If building for only one platform, 
51
       (a) remove one of the imports below
52
       (b) remove dependencies on targets in that build file, which are always suffixed -j or -n respectively 
53
    -->
54
       
55
    <import file="build-j.xml"/>
56
    <import file="build-n.xml"/>
57
    <import file="test-j.xml"/>
58
    <import file="test-n.xml"/>     
59
    
60

  
61
    
62
    <target name="clean" description="Clean all files other than source code and downloaded jars.">
63
        <delete dir="${temp.dir}"/>
64
        <delete dir="${product.dir}"/>
65
        <mkdir dir="${product.dir}"/>
66
    </target>
67
    
68
    <target name="prepare" description="Create 'fixed' files in build libraries"
69
      depends="clean, prepare-n, prepare-j"/>
70
      
71
    
72
    <target name="download" description="Download third-party jar files.">
73
        <get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"
74
            dest="${lib.dir}/dom4j-1.6.1.jar" verbose="true"/>
75

  
76
        <get src="http://www.ibiblio.org/maven/jdom/jars/jdom-1.0.jar"
77
            dest="${lib.dir}/jdom-1.0.jar" verbose="true"/>
78

  
79
        <get src="http://www.cafeconleche.org/XOM/xom-1.1.jar" dest="${lib.dir}/xom-1.1.jar"
80
            verbose="true"/>
81
            
82
        <get src="http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar" dest="${lib.dir}/stax-api-1.0.1.jar"
83
            verbose="true"/> 
84
            
85
            <!-- TODO: add servlet.jar, ant.jar -->   
86
            
87
    </target>                   
88
    
89
    <target name="samples-common" description="Assemble Cross-Platform Samples and Use-Cases">
90
    	<mkdir dir="${build-resources.dir}/samples"/>
91
      <copy todir="${product.dir}/resources/use-cases">
92
        <fileset dir="${usecases.dir}"/>
93
      </copy>
94
      <copy todir="${product.dir}/resources/samples">
95
        <fileset dir="${samples.dir}">
96
          <!-- stuff tends to gather in samples, so only select what's needed to be issued -->
97
          <include name="analysis/timing-profile.xsl"/>
98
          <include name="config/config.xml"/>
99
          <include name="data/books.xml"/>
100
          <include name="data/othello.xml"/>
101
          <include name="data/books.xsd"/>
102
          <include name="data/books.dtd"/>
103
          <include name="data/play.dtd"/>
104
          <include name="query/tour.xq"/>
105
          <include name="query/books.xq"/>
106
          <include name="query/books-to-html.xq"/>
107
          <include name="scm/scmschema.*"/>
108
          <include name="styles/books.xsl"/>
109
          <include name="styles/books.txt"/>
110
          <include name="styles/play.xsl"/>
111
          <include name="styles/identity.xsl"/>
112
          <include name="styles/books-csv.xsl"/>
113
          <include name="styles/books-sa.xsl"/>
114
          <include name="styles/books-sql.xsl"/>
115
          <include name="styles/tour.xsl"/>
116
          <include name="styles/summarize.xsl"/>
117
          <include name="trax/xml/**/*.xml"/>
118
          <include name="trax/xsl/**/*.xsl"/>
119
          <include name="trax/xsl/**/preamble.txt"/>
120
          <include name="trax/xsl/**/postamble.txt"/>
121
        </fileset>
122
      </copy>
123
    </target>
124
    
125
    <!-- The Saxonica build creates a cross-platform samples directory, but it's separated
126
         by platform in case a platform-specific build is needed -->
127
    
128
    
129
    <target name="samples" depends="samples-j, samples-n"/>
130
    
131

  
132
   
133
    
134
    <target name="release-userdoc" description="Generate User Documentation">
135
	  <taskdef name="saxon-xslt" 
136
			         classname="net.sf.saxon.ant.AntTransform" 
137
			         classpath="e:\saxon-build\9.1.0.6\saj\saxon9sa.jar;e:\saxon-build\9.1.0.6\bj\saxon9-ant.jar;c:\saxon-licenses"/>
138
                        <!-- actually, putting the license file on the classpath here doesn't seem to work. It has to be in the classpath
139
                               used to invoke Ant in the first place - specifically, in the CLASSPATH environment variable -->
140
	  <copy todir="${build-resources.dir}/doc">
141
        <fileset dir="${userdoc.dir}/fixed"/>
142
      </copy> 
143
	  <copy todir="${product.dir}/hej">
144
        <fileset dir="${userdoc.dir}/welcome">
145
          <include name="doc/**"/>
146
          <include name="notices/CERN.txt"/>
147
          <include name="notices/JAMESCLARK.txt"/>
148
          <include name="notices/LEGAL.txt"/>
149
          <include name="notices/LICENSE.txt"/>
150
          <include name="notices/THAI.txt"/>
151
          <include name="notices/UNICODE.txt"/>
152
        </fileset>
153
      </copy>
154
      <copy todir="${product.dir}/pej">
155
        <fileset dir="${userdoc.dir}/welcome">
156
          <include name="doc/**"/>
157
          <include name="notices/CERN.txt"/>
158
          <include name="notices/JAMESCLARK.txt"/>
159
          <include name="notices/LEGAL.txt"/>
160
          <include name="notices/LICENSE.txt"/>
161
          <include name="notices/THAI.txt"/>
162
          <include name="notices/UNICODE.txt"/>
163
        </fileset>
164
      </copy>
165
      <copy todir="${product.dir}/eej">
166
        <fileset dir="${userdoc.dir}/welcome">
167
          <include name="doc/**"/>
168
          <include name="notices/CERN.txt"/>
169
          <include name="notices/JAMESCLARK.txt"/>
170
          <include name="notices/LEGAL.txt"/>
171
          <include name="notices/LICENSE.txt"/>
172
          <include name="notices/THAI.txt"/>
173
          <include name="notices/UNICODE.txt"/>
174
        </fileset>
175
      </copy>
176
      <copy todir="${product.dir}/hen">
177
        <fileset dir="${userdoc.dir}/welcome">
178
          <include name="doc/**"/>
179
          <include name="notices/CERN.txt"/>
180
          <include name="notices/JAMESCLARK.txt"/>
181
          <include name="notices/LEGAL.txt"/>
182
          <include name="notices/LICENSE.txt"/>
183
          <include name="notices/THAI.txt"/>
184
          <include name="notices/UNICODE.txt"/>
185
          <include name="notices/APACHE-XERCES.txt"/>
186
          <include name="notices/FRIJTERS.txt"/>
187
          <include name="notices/GPL+CLASSPATH.txt"/>
188
        </fileset>
189
      </copy>
190
      <copy todir="${product.dir}/pen">
191
        <fileset dir="${userdoc.dir}/welcome">
192
          <include name="doc/**"/>
193
          <include name="notices/CERN.txt"/>
194
          <include name="notices/JAMESCLARK.txt"/>
195
          <include name="notices/LEGAL.txt"/>
196
          <include name="notices/LICENSE.txt"/>
197
          <include name="notices/THAI.txt"/>
198
          <include name="notices/UNICODE.txt"/>
199
          <include name="notices/APACHE-XERCES.txt"/>
200
          <include name="notices/FRIJTERS.txt"/>
201
          <include name="notices/GPL+CLASSPATH.txt"/>
202
        </fileset>
203
      </copy>
204
      <copy todir="${product.dir}/een">
205
        <fileset dir="${userdoc.dir}/welcome">
206
          <include name="doc/**"/>
207
          <include name="notices/CERN.txt"/>
208
          <include name="notices/JAMESCLARK.txt"/>
209
          <include name="notices/LEGAL.txt"/>
210
          <include name="notices/LICENSE.txt"/>
211
          <include name="notices/THAI.txt"/>
212
          <include name="notices/UNICODE.txt"/>
213
          <include name="notices/APACHE-XERCES.txt"/>
214
          <include name="notices/FRIJTERS.txt"/>
215
          <include name="notices/GPL+CLASSPATH.txt"/>
216
        </fileset>
217
      </copy>
218
   <!--
219
      NO USER DOCUMENTATION FOR MAINTENANCE BUILDS             
220
			<saxon-xslt in="${userdoc.dir}/catalog.xml" 
221
			            style="${userdoc.dir}/render-page2.xsl"
222
			            schemaAware="true"
223
			            xmlVersion="1.0"
224
			            schemaValidation="strict"
225
			            out="${product.dir}/resources/doc/dummy.html"><!~~validation="strict" ~~>
226
			  <param name="destination" expression="offline"/>
227
			</saxon-xslt> 
228
			<zip zipfile="${build-resources.dir}/source-userdoc.zip">
229
			  <fileset dir="${userdoc.dir}">
230
			    <include name="**/*.xml"/>
231
			    <include name="**/*.xsl"/>
232
			    <include name="**/*.xsd"/>
233
			    <include name="**/*.css"/>
234
			    <include name="fixed/**"/>
235
			    <include name="welcome/**"/>
236
			  </fileset>
237
			</zip> --> 			     
238
    </target>
239
    
240
    <target name="release-source" description="Generate Zip file containing issued Source Code">
241
      <zip zipfile="${build-resources.dir}/saxon${versionh}source.zip">
242
        <fileset dir="${source-hej.dir}">
243
           <include name="net/**/*.java"/>
244
           <include name="net/**/package.html"/>
245
        </fileset>
246
        <fileset dir="${temp-src-nc.dir}">
247
           <include name="api/**/*.cs"/>
248
           <include name="cmd/**/*.cs"/>
249
        </fileset>   
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
    <!-- How to do a maintenance build 
7
    
8
         1. Run with target "prepare"
9
         2. Run with target "build"
10
         3. Copy DLLs to the GAC using Control Panel
11
         4. Run with target "release" -->
12
    
13
    <!-- note : Ant 1.7 is needed for this script -->
14
    
15
    <!-- Ant 1.7 introduces a <service> element to allow META-INF/services
16
         directories to be created in JAR files. Unfortunately it is broken,
17
         see http://issues.apache.org/bugzilla/show_bug.cgi?id=41201. The relevant
18
         code here is retained in the form of comments, and can be reinstated
19
         when the bug is fixed. Meanwhile the directories are created manually -->
20
    
21
    <!-- Build file for Saxon. This builds all six for the released products:
22
         Saxon-HE, -PE, and -EE, on both the Java and .NET platforms. It also builds
23
         the released resources file. A full build requires access to Saxonica
24
         proprietary source code. The open source Saxon-HE product can be built for
25
         Java using target "hej"; but building Saxon-HE for .NET may require some
26
         disentangling of tasks that depend on Saxon-EE code being present. -->
27
         
28
    <!-- Useful targets:
29
    
30
         prepare      clears temporary directories, generates fixed files
31
         j            builds executables for Saxon on Java
32
         n            builds executables for Saxon on .NET
33
         build        builds all executables
34
         resources    builds samples and documentation
35
         release      builds ZIP files for published downloads, runs regression tests
36
         archive      produces a back-up archive  -->
37
             
38
         
39
    <!-- Naming conventions:
40
         -n   : .NET
41
         -j   : Java
42
         -he  : Home Edition
43
         -pe  : Professional Edition
44
         -ee  : Enterprise Edition
45
         combined as appropriate, so -pej denotes Saxon-PE on the Java platform
46
    -->
47
    
48
    <import file="build-constants.xml"/>
49
    
50
    <!-- If building for only one platform, 
51
       (a) remove one of the imports below
52
       (b) remove dependencies on targets in that build file, which are always suffixed -j or -n respectively 
53
    -->
54
       
55
    <import file="build-j.xml"/>
56
    <import file="build-n.xml"/>
57
    <import file="test-j.xml"/>
58
    <import file="test-n.xml"/>     
59
    
60

  
61
    
62
    <target name="clean" description="Clean all files other than source code and downloaded jars.">
63
        <delete dir="${temp.dir}"/>
64
        <delete dir="${product.dir}"/>
65
        <mkdir dir="${product.dir}"/>
66
    </target>
67
    
68
    <target name="prepare" description="Create 'fixed' files in build libraries"
69
      depends="clean, prepare-n, prepare-j"/>
70
      
71
    
72
    <target name="download" description="Download third-party jar files.">
73
        <get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"
74
            dest="${lib.dir}/dom4j-1.6.1.jar" verbose="true"/>
75

  
76
        <get src="http://www.ibiblio.org/maven/jdom/jars/jdom-1.0.jar"
77
            dest="${lib.dir}/jdom-1.0.jar" verbose="true"/>
78

  
79
        <get src="http://www.cafeconleche.org/XOM/xom-1.1.jar" dest="${lib.dir}/xom-1.1.jar"
80
            verbose="true"/>
81
            
82
        <get src="http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar" dest="${lib.dir}/stax-api-1.0.1.jar"
83
            verbose="true"/> 
84
            
85
            <!-- TODO: add servlet.jar, ant.jar -->   
86
            
87
    </target>                   
88
    
89
    <target name="samples-common" description="Assemble Cross-Platform Samples and Use-Cases">
90
    	<mkdir dir="${build-resources.dir}/samples"/>
91
      <copy todir="${product.dir}/resources/use-cases">
92
        <fileset dir="${usecases.dir}"/>
93
      </copy>
94
      <copy todir="${product.dir}/resources/samples">
95
        <fileset dir="${samples.dir}">
96
          <!-- stuff tends to gather in samples, so only select what's needed to be issued -->
97
          <include name="analysis/timing-profile.xsl"/>
98
          <include name="config/config.xml"/>
99
          <include name="data/books.xml"/>
100
          <include name="data/othello.xml"/>
101
          <include name="data/books.xsd"/>
102
          <include name="data/books.dtd"/>
103
          <include name="data/play.dtd"/>
104
          <include name="query/tour.xq"/>
105
          <include name="query/books.xq"/>
106
          <include name="query/books-to-html.xq"/>
107
          <include name="scm/scmschema.*"/>
108
          <include name="styles/books.xsl"/>
109
          <include name="styles/books.txt"/>
110
          <include name="styles/play.xsl"/>
111
          <include name="styles/identity.xsl"/>
112
          <include name="styles/books-csv.xsl"/>
113
          <include name="styles/books-sa.xsl"/>
114
          <include name="styles/books-sql.xsl"/>
115
          <include name="styles/tour.xsl"/>
116
          <include name="styles/summarize.xsl"/>
117
          <include name="trax/xml/**/*.xml"/>
118
          <include name="trax/xsl/**/*.xsl"/>
119
          <include name="trax/xsl/**/preamble.txt"/>
120
          <include name="trax/xsl/**/postamble.txt"/>
121
        </fileset>
122
      </copy>
123
    </target>
124
    
125
    <!-- The Saxonica build creates a cross-platform samples directory, but it's separated
126
         by platform in case a platform-specific build is needed -->
127
    
128
    
129
    <target name="samples" depends="samples-j, samples-n"/>
130
    
131

  
132
   
133
    
134
    <target name="release-userdoc" description="Generate User Documentation">
135
	  <taskdef name="saxon-xslt" 
136
			         classname="net.sf.saxon.ant.AntTransform" 
137
			         classpath="e:\saxon-build\9.1.0.6\saj\saxon9sa.jar;e:\saxon-build\9.1.0.6\bj\saxon9-ant.jar;c:\saxon-licenses"/>
138
                        <!-- actually, putting the license file on the classpath here doesn't seem to work. It has to be in the classpath
139
                               used to invoke Ant in the first place - specifically, in the CLASSPATH environment variable -->
140
	  <copy todir="${build-resources.dir}/doc">
141
        <fileset dir="${userdoc.dir}/fixed"/>
142
      </copy> 
143
	  <copy todir="${product.dir}/hej">
144
        <fileset dir="${userdoc.dir}/welcome">
145
          <include name="doc/**"/>
146
          <include name="notices/CERN.txt"/>
147
          <include name="notices/JAMESCLARK.txt"/>
148
          <include name="notices/LEGAL.txt"/>
149
          <include name="notices/LICENSE.txt"/>
150
          <include name="notices/THAI.txt"/>
151
          <include name="notices/UNICODE.txt"/>
152
        </fileset>
153
      </copy>
154
      <copy todir="${product.dir}/pej">
155
        <fileset dir="${userdoc.dir}/welcome">
156
          <include name="doc/**"/>
157
          <include name="notices/CERN.txt"/>
158
          <include name="notices/JAMESCLARK.txt"/>
159
          <include name="notices/LEGAL.txt"/>
160
          <include name="notices/LICENSE.txt"/>
161
          <include name="notices/THAI.txt"/>
162
          <include name="notices/UNICODE.txt"/>
163
        </fileset>
164
      </copy>
165
      <copy todir="${product.dir}/eej">
166
        <fileset dir="${userdoc.dir}/welcome">
167
          <include name="doc/**"/>
168
          <include name="notices/CERN.txt"/>
169
          <include name="notices/JAMESCLARK.txt"/>
170
          <include name="notices/LEGAL.txt"/>
171
          <include name="notices/LICENSE.txt"/>
172
          <include name="notices/THAI.txt"/>
173
          <include name="notices/UNICODE.txt"/>
174
        </fileset>
175
      </copy>
176
      <copy todir="${product.dir}/hen">
177
        <fileset dir="${userdoc.dir}/welcome">
178
          <include name="doc/**"/>
179
          <include name="notices/CERN.txt"/>
180
          <include name="notices/JAMESCLARK.txt"/>
181
          <include name="notices/LEGAL.txt"/>
182
          <include name="notices/LICENSE.txt"/>
183
          <include name="notices/THAI.txt"/>
184
          <include name="notices/UNICODE.txt"/>
185
          <include name="notices/APACHE-XERCES.txt"/>
186
          <include name="notices/FRIJTERS.txt"/>
187
          <include name="notices/GPL+CLASSPATH.txt"/>
188
        </fileset>
189
      </copy>
190
      <copy todir="${product.dir}/pen">
191
        <fileset dir="${userdoc.dir}/welcome">
192
          <include name="doc/**"/>
193
          <include name="notices/CERN.txt"/>
194
          <include name="notices/JAMESCLARK.txt"/>
195
          <include name="notices/LEGAL.txt"/>
196
          <include name="notices/LICENSE.txt"/>
197
          <include name="notices/THAI.txt"/>
198
          <include name="notices/UNICODE.txt"/>
199
          <include name="notices/APACHE-XERCES.txt"/>
200
          <include name="notices/FRIJTERS.txt"/>
201
          <include name="notices/GPL+CLASSPATH.txt"/>
202
        </fileset>
203
      </copy>
204
      <copy todir="${product.dir}/een">
205
        <fileset dir="${userdoc.dir}/welcome">
206
          <include name="doc/**"/>
207
          <include name="notices/CERN.txt"/>
208
          <include name="notices/JAMESCLARK.txt"/>
209
          <include name="notices/LEGAL.txt"/>
210
          <include name="notices/LICENSE.txt"/>
211
          <include name="notices/THAI.txt"/>
212
          <include name="notices/UNICODE.txt"/>
213
          <include name="notices/APACHE-XERCES.txt"/>
214
          <include name="notices/FRIJTERS.txt"/>
215
          <include name="notices/GPL+CLASSPATH.txt"/>
216
        </fileset>
217
      </copy>
218
   <!--
219
      NO USER DOCUMENTATION FOR MAINTENANCE BUILDS             
220
			<saxon-xslt in="${userdoc.dir}/catalog.xml" 
221
			            style="${userdoc.dir}/render-page2.xsl"
222
			            schemaAware="true"
223
			            xmlVersion="1.0"
224
			            schemaValidation="strict"
225
			            out="${product.dir}/resources/doc/dummy.html"><!~~validation="strict" ~~>
226
			  <param name="destination" expression="offline"/>
227
			</saxon-xslt> 
228
			<zip zipfile="${build-resources.dir}/source-userdoc.zip">
229
			  <fileset dir="${userdoc.dir}">
230
			    <include name="**/*.xml"/>
231
			    <include name="**/*.xsl"/>
232
			    <include name="**/*.xsd"/>
233
			    <include name="**/*.css"/>
234
			    <include name="fixed/**"/>
235
			    <include name="welcome/**"/>
236
			  </fileset>
237
			</zip> --> 			     
238
    </target>
239
    
240
    <target name="release-source" description="Generate Zip file containing issued Source Code">
241
      <zip zipfile="${build-resources.dir}/saxon${versionh}source.zip">
242
        <fileset dir="${source-hej.dir}">
243
           <include name="net/**/*.java"/>
244
           <include name="net/**/package.html"/>
245
        </fileset>
246
        <fileset dir="${temp-src-nc.dir}">
247
           <include name="api/**/*.cs"/>
248
           <include name="cmd/**/*.cs"/>
249
        </fileset>   
250
      </zip>
251
      <zip zipfile="${source-eej.dir}/../releases/saxonee${versionh}source.zip">
252
        <fileset dir="${source-eej.dir}">
253
           <include name="com/saxonica/**/*.java"/>
254
           <include name="com/saxonica/**/package.html"/>
255
        </fileset>
256
      </zip>
257
    </target>
258
    
259
    <target name="resources" description="Generate contents of released resources file"
260
      	depends="release-userdoc, product-javadoc, product-dotnetdoc,
261
      	         samples, samples-j, testdrivers-j,  release-source">  <!-- samples-n, -->
262
      <mkdir dir="${product.dir}/resources/build"/>
263
      <copy todir="${product.dir}/resources/build">
264
        <fileset dir="${basedir}">
265
          <include name="build.xml"/>
266
          <include name="ikvmc.cmd"/>
267
          <include name="csharp-compile.cmd"/>
268
        </fileset>  
269
      </copy>
270
      <copy todir="${product.dir}/resources">
271
        <fileset dir="${userdoc.dir}/welcome">
272
          <include name="notices/**"/>
273
        </fileset>
274
      </copy>
275
    </target>  
276
      
277
    <target name="build" description="Complete Saxon product build"
278
      	depends="j, n"/>
279
      	
280
    <target name="test" description="Run regression tests"
281
        depends="test-j, test-n"/>  	 
282
      
283
    <target name="release" description="Create .ZIP files for release"
284
        depends="build, resources, test"
285
        >  <!-- -->
286
      <mkdir dir="${issue.dir}"/> 
287
      <zip zipfile="${issue.dir}/saxonhe${versionh}j.zip">
288
        <fileset dir="${product.dir}/hej"/>
289
      </zip>
290
      <zip zipfile="${issue.dir}/saxonhe${versionh}n.zip">
291
        <fileset dir="${product.dir}/hen"/>
292
      </zip>
293
      <zip zipfile="${issue.dir}/saxonpe${versionh}j.zip">
294
        <fileset dir="${product.dir}/pej"/>
295
      </zip>                     
296
      <zip zipfile="${issue.dir}/saxonpe${versionh}n.zip">
297
        <fileset dir="${product.dir}/pen"/>
298
      </zip>
299
	  <zip zipfile="${issue.dir}/saxonee${versionh}j.zip">
300
        <fileset dir="${product.dir}/eej"/>
301
      </zip>                     
302
      <zip zipfile="${issue.dir}/saxonee${versionh}n.zip">
303
        <fileset dir="${product.dir}/een"/>
304
      </zip>
305
      <zip zipfile="${issue.dir}/saxon-resources${versionh}.zip">
306
        <fileset dir="${product.dir}/resources"/>
307
      </zip>
308
    </target>
309
    
310
    <target name="archive" description="Archive everything needed for backup"> 
311
      <mkdir dir="${archive.dir}"/>
312
      <copy file="archive-contents.txt" todir="${archive.dir}"/>
313
      <replace file="${archive.dir}/archive-contents.txt"
314
                 token="N-N-N-N"
315
                 value="${version}"
316
                 summary="yes"/>
317
      <copy todir="${archive.dir}">
318
       <fileset dir="${issue.dir}"/>
319
       <fileset dir="${source-eej.dir}" includes="saxonee${version}source.zip"/>
320
       <fileset dir="${build-resources.dir}" includes="saxon${version}source.zip"/>
321
      </copy>
322
      <zip zipfile="${archive.dir}/testsuite.zip">
323
        <fileset dir="e:/tests">
324
          <include name="testsuite/**"/>
325
          <include name="gold/**"/>
326
        </fileset>
327
      </zip>        
328
      <zip zipfile="${archive.dir}/schematests.zip">
329
        <fileset dir="e:/tests">
330
          <include name="xmlschema2006-11-06/**"/>
331
          <exclude name="xmlschema2006-11-06/msData/**"/>
332
          <exclude name="xmlschema2006-11-06/sunData/**"/>
333
          <exclude name="xmlschema2006-11-06/nistData/**"/>
334
        </fileset>
335
      </zip>
336
      <zip zipfile="${archive.dir}/querytests.zip">
337
        <fileset dir="e:/tests/xqts-extra"/>
338
        <fileset dir="e:/xqts/saxon">
339
          <exclude name="results/**"/>
340
          <exclude name="results.net/**"/>
341
          <exclude name="**/java/**"/>
342
        </fileset>
343
        <fileset dir="e:/xquts/saxon">
344
          <exclude name="results/**"/>
345
          <exclude name="results.net/**"/>
346
        </fileset>
347
      </zip>
348
      <zip zipfile="${archive.dir}/xslttests.zip">
349
        <fileset dir="e:/xslts-extra"/>
350
        <fileset dir="e:/xslt20-test/TestSuiteStagingArea/SaxonResults">
351
          <include name="*.xml"/>
352
          <include name="*.xsl"/>
353
        </fileset>
354
        <fileset dir="e:/xslt20-test/TestSuiteStagingArea/SaxonResults.Net">
355
          <include name="*.xml"/>
356
          <include name="*.xsl"/>
357
        </fileset>
358
      </zip>
359
      <zip zipfile="${archive.dir}/javatests.zip">
360
        <fileset dir="c:/MyJava/testcode"/>
250 361
      </zip>
251
      <zip zipfile="${source-eej.dir}/../releases/saxonee${versionh}source.zip">
252
        <fileset dir="${source-eej.dir}">
253
           <include name="com/saxonica/**/*.java"/>
254
           <include name="com/saxonica/**/package.html"/>
255
        </fileset>
256
      </zip>
257
    </target>
258
    
259
    <target name="resources" description="Generate contents of released resources file"
260
      	depends="release-userdoc, product-javadoc, product-dotnetdoc,
261
      	         samples, samples-j, testdrivers-j,  release-source">  <!-- samples-n, -->
262
      <mkdir dir="${product.dir}/resources/build"/>
263
      <copy todir="${product.dir}/resources/build">
264
        <fileset dir="${basedir}">
265
          <include name="build.xml"/>
266
          <include name="ikvmc.cmd"/>
267
          <include name="csharp-compile.cmd"/>
268
        </fileset>  
269
      </copy>
270
      <copy todir="${product.dir}/resources">
271
        <fileset dir="${userdoc.dir}/welcome">
272
          <include name="notices/**"/>
273
        </fileset>
274
      </copy>
275
    </target>  
276
      
277
    <target name="build" description="Complete Saxon product build"
278
      	depends="j, n"/>
279
      	
280
    <target name="test" description="Run regression tests"
281
        depends="test-j, test-n"/>  	 
282
      
283
    <target name="release" description="Create .ZIP files for release"
284
        depends="build, resources, test"
285
        >  <!-- -->
286
      <mkdir dir="${issue.dir}"/> 
287
      <zip zipfile="${issue.dir}/saxonhe${versionh}j.zip">
288
        <fileset dir="${product.dir}/hej"/>
289
      </zip>
290
      <zip zipfile="${issue.dir}/saxonhe${versionh}n.zip">
291
        <fileset dir="${product.dir}/hen"/>
292
      </zip>
293
      <zip zipfile="${issue.dir}/saxonpe${versionh}j.zip">
294
        <fileset dir="${product.dir}/pej"/>
295
      </zip>                     
296
      <zip zipfile="${issue.dir}/saxonpe${versionh}n.zip">
297
        <fileset dir="${product.dir}/pen"/>
298
      </zip>
299
	  <zip zipfile="${issue.dir}/saxonee${versionh}j.zip">
300
        <fileset dir="${product.dir}/eej"/>
301
      </zip>                     
302
      <zip zipfile="${issue.dir}/saxonee${versionh}n.zip">
303
        <fileset dir="${product.dir}/een"/>
304
      </zip>
305
      <zip zipfile="${issue.dir}/saxon-resources${versionh}.zip">
306
        <fileset dir="${product.dir}/resources"/>
307
      </zip>
308
    </target>
309
    
310
    <target name="archive" description="Archive everything needed for backup"> 
311
      <mkdir dir="${archive.dir}"/>
312
      <copy file="archive-contents.txt" todir="${archive.dir}"/>
313
      <replace file="${archive.dir}/archive-contents.txt"
314
                 token="N-N-N-N"
315
                 value="${version}"
316
                 summary="yes"/>
317
      <copy todir="${archive.dir}">
318
       <fileset dir="${issue.dir}"/>
319
       <fileset dir="${development-j.dir}" includes="sa-source.zip"/>
320
       <fileset dir="${build-resources.dir}" includes="source.zip"/>
321
      </copy>
322
      <zip zipfile="${archive.dir}/testsuite.zip">
323
        <fileset dir="e:/tests">
324
          <include name="testsuite/**"/>
325
          <include name="gold/**"/>
326
        </fileset>
327
      </zip>        
328
      <zip zipfile="${archive.dir}/schematests.zip">
329
        <fileset dir="e:/tests">
330
          <include name="xmlschema2006-11-06/**"/>
331
          <exclude name="xmlschema2006-11-06/msData"/>
332
          <exclude name="xmlschema2006-11-06/sunData"/>
333
          <exclude name="xmlschema2006-11-06/nistData"/>
334
        </fileset>
335
      </zip>
336
      <zip zipfile="${archive.dir}/querytests.zip">
337
        <fileset dir="e:/tests/xqts-extra"/>
338
        <fileset dir="e:/xqts/saxon">
339
          <exclude name="results/**"/>
340
        </fileset>
341
        <fileset dir="e:/xquts/saxon">
342
          <exclude name="results/**"/>
343
        </fileset>
344
      </zip>
345
      <zip zipfile="${archive.dir}/xslttests.zip">
346
        <fileset dir="e:/xslts-extra"/>
347
        <fileset dir="e:/xslt20-test/TestSuiteStagingArea/SaxonResults">
348
          <include name="*.xml"/>
349
          <include name="*.xsl"/>
350
        </fileset>
351
        <fileset dir="e:/xslt20-test/TestSuiteStagingArea/SaxonResults.Net">
352
          <include name="*.xml"/>
353
          <include name="*.xsl"/>
354
        </fileset>
355
      </zip>
356
      <zip zipfile="${archive.dir}/javatests.zip">
357
        <fileset dir="c:/MyJava/testcode"/>
358
      </zip>

359
      <zip zipfile="${archive.dir}/doc.zip">
360
        <fileset dir="c:/MyJava/doc"/>
361
      </zip>
362
      <zip zipfile="${archive.dir}/licensetool.zip">
363
        <fileset dir="c:/MyJava/licensetool"/>
364
      </zip>
365
      <zip zipfile="${archive.dir}/dotnetmake.zip">
366
        <fileset dir="c:/MyDotNet/make"/>
367
      </zip>      
368
      <zip zipfile="${archive.dir}/licenses.zip">
369
        <fileset dir="c:/saxon-licenses"/>
370
      </zip>
371
      <zip zipfile="${archive.dir}/build.zip">
372
        <fileset dir="c:/MyJava/build">
373
          <exclude name="c:/MyJava/build/temp"/>
374
        </fileset>
375
      </zip>
376
    </target>  
377
      
378
       
379
    
380
</project>
362
      <zip zipfile="${archive.dir}/doc.zip">
363
        <fileset dir="c:/MyJava/doc"/>
364
      </zip>
365
      <zip zipfile="${archive.dir}/licensetool.zip">
366
        <fileset dir="c:/MyJava/licensetool"/>
367
      </zip>
368
      <zip zipfile="${archive.dir}/dotnetmake.zip">
369
        <fileset dir="c:/MyDotNet/make"/>
370
      </zip>      
371
      <zip zipfile="${archive.dir}/licenses.zip">
372
        <fileset dir="c:/saxon-licenses">
373
            <exclude name="archived-licenses/**"/>
374
            <exclude name="licenses/**"/>
375
        </fileset>    
376
      </zip>
377
      <zip zipfile="${archive.dir}/build.zip">
378
        <fileset dir="c:/MyJava/build">
379
          <exclude name="c:/MyJava/build/temp/**"/>
380
        </fileset>
381
      </zip>
382
    </target>  
383
      
384
       
385
    
386
</project>

Also available in: Unified diff