ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Mancarella" <mancare...@opoipi.bancaintesa.it>
Subject Re: JUnit problems
Date Wed, 21 Nov 2001 16:52:55 GMT
----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message