build.xml additions

"Jeroen van Rotterdam" <[email protected]>
Newsgroups gmane.comp.web.dom.test-suites.general
Message-ID <[email protected]>
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: [email protected]
phone: +31 10 2818080
http://www.x-hive.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.