You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2006/06/24 16:06:36 UTC

[PATCH] make xslt tests work via ant

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.
]]]

Re: [PATCH] make xslt tests work via ant

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 6/27/06, James M Snell <ja...@gmail.com> wrote:
> Patched

Thanks!

-garrett

Re: [PATCH] make xslt tests work via ant

Posted by James M Snell <ja...@gmail.com>.
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">