build.xml additions

I added the following targets to my build.xml to build a single test and
to compile a dom3 module.
It might make sense to add something like this to the build.xml in the
test suite distribution.

1. generate a single test

run as follows: ant dom3-gen-java -Dtest=atest.xml -Dmodule=ls


<target name="dom3-gen-java" depends="init">
 <style basedir="${tests.dir}/level3/${module}"
        destdir="${java.build.dir}/org/w3c/domts/level3/${module}"
        includes="${test}"
        style="${transforms.dir}/test-to-java.xsl"
        extension=".java">
  <param name="interfaces-docname"
       expression="../${build.dir}/dom3-interfaces.xml"/>
  <param name="package"
       expression="org.w3c.domts.level3.${module}"/>
  <param name="target-uri-base"
       expression="http://www.w3.org/2001/DOM-Test-Suite/level3/${module}/"/>
 </style>
</target>

2. compile a module:

run as follows: ant dom3-javac -Dmodule=ls

<!--jvr-->
<target name="dom3-javac" depends="init">

	<javac
		destdir="${java.build.dir}"
		classpath="${java.build.dir};${jaxp.jar}"
                debug="on"
		encoding="UTF8">
        <src path="${java.build.dir}"/>
        <include name="org/w3c/domts/level3/${module}/*"/>
    </javac>
</target>


jeroen

=====
X-Hive Corporation
Jeroen van Rotterdam, CEO
e-mail: jeroen@x-hive.com
phone: +31 10 2818080
http://www.x-hive.com

Received on Sunday, 12 January 2003 10:21:14 UTC