users@glassfish.java.net

Re: GlassFish 3.0.1 and classpath-suffix

From: Sanjeeb Sahoo <Sahoo_at_Sun.COM>
Date: Sat, 31 Jul 2010 06:22:39 +0530

No, don't depend on classpath-suffix.

Sahoo
On Saturday 31 July 2010 04:09 AM, Major Péter wrote:
> Hi,
>
> As far as I know classpath-suffix isn't supported in GF v3:
> http://forums.java.net/jive/thread.jspa?messageID=378158
>
> but we have the following code:
> URL resUrl = ClassLoader.getSystemResource(CONFIG_FILE_NAME);
> if(resUrl == null) {
> ClassLoader cl =
> Thread.currentThread().getContextClassLoader();
> if(cl != null) {
> resUrl = cl.getResource(CONFIG_FILE_NAME);
> }
> }
>
> And this works with classpath-suffix containing a specific value, but
> does not when it's empty. Is this intentional? Can I count on this, or
> should I not depend on classpath-suffix at all?
>
> Thanks,
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>