abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: [PATCH] make xslt tests work via ant
Date Tue, 27 Jun 2006 23:27:56 GMT
Patched

Garrett Rooney wrote:
> I've been having some trouble running the XSLT tests via ant, and a
> little googling around implies that it has something to do with ant
> and xalan.jar not being in the classpath, resulting in a
> NullPointerException when you try and instantiate the xslt engine.
> 
> See
> http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200501.mbox/%3C41FD07AE.9090905@cs.rutgers.edu%3E
> 
> for an example of the error.
> 
> I have no clue what the "right" way to fix this is, or what the real
> root cause is, but the work around appears to be adding fork="yes" to
> the java tasks that run the tests.  Here's a patch that does that.
> 
> -garrett
> 
> [[[
> Make xslt test work by forking off our test runs.
> 
> * build/build.xml
>  (test): add fork="yes" to our java runs.
> ]]]
> 
> 
> ------------------------------------------------------------------------
> 
> Index: build/build.xml
> ===================================================================
> --- build/build.xml	(revision 416918)
> +++ build/build.xml	(working copy)
> @@ -149,12 +149,14 @@
>      <echo>Running Core Tests...</echo>
>      <java classpathref="jar.dependencies" 
>            classpath="${core.work}:${parser.work}:${server.work}:${test}"
> -          classname="org.apache.abdera.test.core.TestSuite" />
> +          classname="org.apache.abdera.test.core.TestSuite"
> +          fork="yes" />
>  
>      <echo>Running Stax Parser Tests...</echo>
>      <java classpathref="jar.dependencies" 
>            classpath="${core.work}:${parser.work}:${server.work}:${test}"
> -          classname="org.apache.abdera.test.parser.stax.TestSuite" />
> +          classname="org.apache.abdera.test.parser.stax.TestSuite"
> +          fork="yes" />
>    </target>
>  
>    <target name="clean">

Mime
View raw message