|
1 | | -<project name="jing-trang" default="jar"> |
| 1 | +<project name="jing-trang" default="ant-jar"> |
2 | 2 |
|
3 | 3 | <property name="lib.dir" value="lib"/> |
4 | 4 | <property name="build.dir" value="${basedir}/build"/> |
|
41 | 41 |
|
42 | 42 | <target name="modbuild" depends="modules,check-modbuild" unless="modbuild-ok"> |
43 | 43 | <xslt style="build.xsl" in="modules.xml" out="modbuild.xml" force="true"> |
44 | | - <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 44 | + <classpath> |
| 45 | + <fileset dir="lib"> |
| 46 | + <filename name="saxon9.jar"/> |
| 47 | + </fileset> |
| 48 | + </classpath> |
| 49 | + <factory name="net.sf.saxon.TransformerFactoryImpl"/> |
45 | 50 | </xslt> |
46 | 51 | </target> |
47 | 52 |
|
48 | | -<target name="test" depends="modbuild"> |
49 | | - <ant antfile="modbuild.xml" target="test"/> |
| 53 | +<target name="ant-test" depends="modbuild"> |
| 54 | + <ant antfile="modbuild.xml" target="ant-test"/> |
50 | 55 | </target> |
51 | 56 |
|
52 | 57 | <target name="srczip" depends="modbuild"> |
53 | 58 | <ant antfile="modbuild.xml" target="srczip"/> |
54 | 59 | </target> |
55 | 60 |
|
56 | | -<target name="jar" depends="modbuild"> |
57 | | - <ant antfile="modbuild.xml" target="jar"/> |
| 61 | +<target name="ant-jar" depends="modbuild"> |
| 62 | + <ant antfile="modbuild.xml" target="ant-jar"/> |
58 | 63 | <taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"> |
59 | 64 | <classpath> |
60 | 65 | <pathelement location="${build.dir}/jing.jar"/> |
|
75 | 80 | includes="${moddir}/*/${modfile}" |
76 | 81 | filedirparameter="name" |
77 | 82 | destdir="."> |
78 | | - <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 83 | + <factory name="net.sf.saxon.TransformerFactoryImpl"/> |
| 84 | + <classpath> |
| 85 | + <fileset dir="lib"> |
| 86 | + <filename name="saxon9.jar"/> |
| 87 | + </fileset> |
| 88 | + </classpath> |
79 | 89 | <regexpmapper from="mod/([-a-zA-Z0-9_]*)/mod.xml" |
80 | 90 | to="mod/\1/\1.iml" |
81 | 91 | handledirsep="true"/> |
82 | 92 | </xslt> |
83 | 93 | </target> |
84 | 94 |
|
85 | | -<target name="init"> |
| 95 | +<target name="ant-init"> |
86 | 96 | <mkdir dir="${build.dir}"/> |
87 | 97 | <mkdir dir="${build.dir}/dist"/> |
88 | 98 | </target> |
|
91 | 101 | <xmlproperty file="version.xml"/> |
92 | 102 | </target> |
93 | 103 |
|
94 | | -<target name="validate" depends="jar" description="Validate all XML files" > |
| 104 | +<target name="validate" depends="ant-jar" description="Validate all XML files" > |
95 | 105 | <jing rngfile="test/regextest.rnc" compactsyntax="true"> |
96 | 106 | <fileset dir="test" includes="regextest.xml"/> |
97 | 107 | </jing> |
|
144 | 154 | com.thaiopensource.xml.sax, |
145 | 155 | com.thaiopensource.util"/> |
146 | 156 |
|
147 | | -<target name="javadoc" depends="init"> |
| 157 | +<target name="ant-javadoc" depends="ant-init"> |
148 | 158 | <mkdir dir="${build.dir}/api"/> |
149 | 159 | <mkdir dir="${build.dir}/api/datatype"/> |
150 | 160 | <mkdir dir="${build.dir}/api/jing"/> |
|
198 | 208 | </javadoc> |
199 | 209 | </target> |
200 | 210 |
|
201 | | -<target name="doccheck" depends="init"> |
| 211 | +<target name="doccheck" depends="ant-init"> |
202 | 212 | <mkdir dir="${build.dir}/doccheck"/> |
203 | 213 | <javadoc sourcepathref="javadoc.sourcepath" |
204 | 214 | additionalparam="-html5 -Xdoclint:none" |
|
217 | 227 | </javadoc> |
218 | 228 | </target> |
219 | 229 |
|
220 | | -<target name="datatype-sample" depends="jar"> |
| 230 | +<target name="datatype-sample" depends="ant-jar"> |
221 | 231 | <ant dir="datatype-sample"> |
222 | 232 | <property name="build.dir" value="${build.dir}/datatype-sample"/> |
223 | 233 | <property name="jing.jar" value="${build.dir}/jing.jar"/> |
|
227 | 237 | <target name="jing-doc" depends="version"> |
228 | 238 | <xslt basedir="doc" destdir="${build.dir}" includes="derivative.xml" |
229 | 239 | style="doc/derivative.xsl"> |
230 | | - <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 240 | + <factory name="net.sf.saxon.TransformerFactoryImpl"/> |
| 241 | + <classpath> |
| 242 | + <fileset dir="lib"> |
| 243 | + <filename name="saxon9.jar"/> |
| 244 | + </fileset> |
| 245 | + </classpath> |
231 | 246 | </xslt> |
232 | 247 | <xslt basedir="doc" destdir="${build.dir}" includes="design.xml" |
233 | 248 | style="doc/design.xsl"> |
234 | | - <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 249 | + <factory name="net.sf.saxon.TransformerFactoryImpl"/> |
| 250 | + <classpath> |
| 251 | + <fileset dir="lib"> |
| 252 | + <filename name="saxon9.jar"/> |
| 253 | + </fileset> |
| 254 | + </classpath> |
235 | 255 | </xslt> |
236 | 256 | <xslt basedir="doc" destdir="${build.dir}" includes="nrl.xml" |
237 | 257 | style="doc/nrl.xsl"> |
238 | | - <factory name="com.icl.saxon.TransformerFactoryImpl"/> |
| 258 | + <factory name="net.sf.saxon.TransformerFactoryImpl"/> |
| 259 | + <classpath> |
| 260 | + <fileset dir="lib"> |
| 261 | + <filename name="saxon9.jar"/> |
| 262 | + </fileset> |
| 263 | + </classpath> |
239 | 264 | </xslt> |
240 | 265 | <copy todir="${build.dir}"> |
241 | 266 | <fileset dir="doc" includes="*.html"/> |
242 | 267 | </copy> |
243 | 268 | <replace file="${build.dir}/jing.html" token="@VERSION@" value="${version}"/> |
244 | 269 | </target> |
245 | 270 |
|
246 | | -<target name="jing-dist" depends="init,jar,javadoc,jing-doc,datatype-sample,srczip,version"> |
| 271 | +<target name="jing-dist" depends="ant-init,ant-jar,ant-javadoc,jing-doc,datatype-sample,srczip,version"> |
247 | 272 | <mkdir dir="${build.dir}/jing-bin"/> |
248 | 273 | <copy todir="${build.dir}/jing-bin"> |
249 | 274 | <fileset dir="doc/jing-bin" includes="readme.html"/> |
250 | 275 | </copy> |
251 | 276 | <replace file="${build.dir}/jing-bin/readme.html" token="@VERSION@" value="${version}"/> |
252 | 277 | <zip zipfile="${build.dir}/dist/jing-${version}.zip"> |
253 | 278 | <zipfileset dir="${build.dir}" includes="jing.jar" prefix="jing-${version}/bin"/> |
254 | | - <zipfileset dir="lib" includes="saxon.jar,isorelax.jar,xercesImpl.jar,xml-apis.jar" |
| 279 | + <zipfileset dir="lib" includes="saxon9.jar,isorelax.jar,xercesImpl.jar,xml-apis.jar" |
255 | 280 | prefix="jing-${version}/bin"/> |
256 | 281 | <zipfileset dir="${build.dir}/mod/jing" |
257 | 282 | includes="src.zip" |
|
302 | 327 | includes="trang.html,trang-manual.html" token="@VERSION@" value="${version}"/> |
303 | 328 | </target> |
304 | 329 |
|
305 | | -<target name="trang-dist" depends="init,jar,trang-doc,srczip,version"> |
| 330 | +<target name="trang-dist" depends="ant-init,ant-jar,trang-doc,srczip,version"> |
306 | 331 | <zip zipfile="${build.dir}/dist/trang-${version}.zip"> |
307 | 332 | <zipfileset dir="trang" includes="copying.txt" prefix="trang-${version}"/> |
308 | 333 | <zipfileset dir="${build.dir}" |
|
348 | 373 | value="${version}"/> |
349 | 374 | </target> |
350 | 375 |
|
351 | | -<target name="dtdinst-dist" depends="init,jar,dtdinst-doc,srczip,version"> |
| 376 | +<target name="dtdinst-dist" depends="ant-init,ant-jar,dtdinst-doc,srczip,version"> |
352 | 377 | <zip zipfile="${build.dir}/dist/dtdinst-${version}.zip"> |
353 | 378 | <zipfileset dir="${build.dir}/dtdinst" prefix="dtdinst-${version}"/> |
354 | 379 | <zipfileset dir="${build.dir}" |
|
361 | 386 | <checksum file="${build.dir}/dist/dtdinst-${version}.zip" algorithm="sha1"/> |
362 | 387 | </target> |
363 | 388 |
|
364 | | -<target name="website" depends="validate,javadoc,datatype-sample,jing-doc,trang-doc,dtdinst-doc" |
| 389 | +<target name="website" depends="validate,ant-javadoc,datatype-sample,jing-doc,trang-doc,dtdinst-doc" |
365 | 390 | description="Build a .tar.gz containing the complete relaxng website" > |
366 | 391 | <copy todir="${build.dir}"> |
367 | 392 | <fileset dir="." includes="xhtml/**/*.rng,xhtml/index.html"/> |
|
385 | 410 | <gzip zipfile="${build.dir}/dist/relaxng.tar.gz" src="${build.dir}/relaxng.tar"/> |
386 | 411 | </target> |
387 | 412 |
|
388 | | -<target name="dist" depends="test,validate,jing-dist,trang-dist,dtdinst-dist,website" |
| 413 | +<target name="dist" depends="ant-test,validate,jing-dist,trang-dist,dtdinst-dist,website" |
389 | 414 | description="Make a distribution, leaving artifacts in ${build.dir}/dist"/> |
390 | 415 |
|
391 | 416 | <target name="googlecode.properties.available"> |
|
428 | 453 | labels="Type-Archive, OpSys-All, Version-${version}"/> |
429 | 454 | </target> |
430 | 455 |
|
431 | | -<target name="clean" |
| 456 | +<target name="ant-clean" |
432 | 457 | description="Remove almost all files created during the build process"> |
433 | 458 | <delete dir="${build.dir}"/> |
434 | 459 | <exec executable="git"> |
|
439 | 464 | </exec> |
440 | 465 | </target> |
441 | 466 |
|
442 | | -<target name="realclean" depends="clean" |
| 467 | +<target name="realclean" depends="ant-clean" |
443 | 468 | description="Remove all files created during the build process"> |
444 | 469 | <delete> |
445 | 470 | <fileset dir="mod" includes="*/*.iml"/> |
|
0 commit comments