----- Original Message ----- 
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
Subject: Re: JUnit problems


> > If it's useful I can set up a small test case for the problem...
> yes, please.

I'll attach it to the bug report I'm going to file on bugzilla.

> > Thread.currentThread().getContextClassLoader().getResourceAsStream()
> > but, as I said, this only works with fork=true (which leads to
> > slower testing and output re-appearing).
> I thought, AntClassLoader would set the context classloader properly,
> hmm.  Can your testcase classes be loaded via the system classloader
> as well?

I tried with:

ClassLoader.getSystemClassLoader().getResourceAsStream("resource")

and got the same behavior: works only with fork="true".
I also tried prepending a "/" to the resource name, but without success.

> > P.S.: One of them is the war/ear update patch I sent some time ago
> > and you sayd should go in 1.5 - even if I haven't seen it applied to
> > CVS yet.. ;)
> The don't require a webinf file if you are updating the archive?

Yep!

> Somewhere down on my TODO list, sorry.

No problem. ;)



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to