Re: Problem referencing a resource in a plugin jar

2006-11-11 Thread David Whitehurst
Tom: That was it! I'm in business now with my templates inside the plugin. Thanks, David On 11/11/06, Tom Huybrechts <[EMAIL PROTECTED]> wrote: Check the value of classLoader.getResource(...). This should be a URL in the form to a resource inside a jar. I don't think turning this into a str

Re: Problem referencing a resource in a plugin jar

2006-11-11 Thread Tom Huybrechts
Check the value of classLoader.getResource(...). This should be a URL in the form to a resource inside a jar. I don't think turning this into a string and passing that to new File() will help. Instead try using getting the resource as a stream. InputStream is = getClass().getClassLoader().getReso

Problem referencing a resource in a plugin jar

2006-11-11 Thread David Whitehurst
Can someone tell me how to get the maven plugin classloader? Or tell me if that's I can't obtain the reference file as such ... from a plugin.java file e.g. ClassLoader classLoader = this.getClass().getClassLoader(); File file = new File(classLoader.getResource (getLocalPro