[stringtemplate-interest] loading via classpath
Terence Parr
parrt at antlr.org
Fri Feb 4 12:12:29 PST 2011
On Feb 4, 2011, at 12:06 PM, Collin Fagan wrote:
> Is this isn't from a static method, right? I've never had luck with Thread.currentThread().getContextClassLoader().
>
> You could try
>
> new Object().getClass().getClassLoader().
i try that too:
> cl = this.getClass().getClassLoader();
> url = cl.getResource(fileName);
weird.
T
More information about the stringtemplate-interest
mailing list