On Dec 18, 2007 8:21 PM, vetalok <[EMAIL PROTECTED]> wrote:
>
> Hi all
> I have maven 2.0.7 and the latest surefire plugin.
> Surefire can't find resource if forkMode=once ( if forkMode=never it works)
> Here is snip of code:
> BaseStandaloneTest.class.getResource("/login.conf").toString();Class#getResource delegates to the class ClassLoader getResource method. I.e. the above code is similar to: BaseStandaloneTest.class.getClassLoader().getResource()... Try using the Context ClassLoader. i.e. Thread.currentThread().getContextClassLoader().getResource(....) J --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
