You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by da...@davidkarlsen.com on 2009/12/07 14:18:43 UTC

Re: [mojo-user] [extrends AbstractMojo]

On Mon, 7 Dec 2009, NGUYEN Cong Kinh wrote:

> Hello everybody,
>
> I'm creating a plugin maven (extends AbstractMojo). In fact, in the code of 
> the plugin, I want to load a file in the resources directory of the plugin 
> maven. How I can do that? Because normally the current directory is directory 
> of the module that uses the plugin maven.


this.getClass().getClassLoader().getResource() ?
or org.codehaus.plexus.resource.ResourceManager


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
Sent from my bog-standard SMTP client

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org