On Wed, 2005-07-13 at 18:46 +0200, c_inconnu3 wrote:

> Thanks for this great help, i was going mad... :-)
> 
> This works :
> * 
> this.getClass().getClassLoader().getResourceAsStream("a/b/c/myTest.properties");
> 
> This DOES NOT works :
> * ClassLoader.getSystemResourceAsStream("a/b/c/myTest.properties");
> * 
> this.getClass().getClassLoader().getSystemResourceAsStream("a/b/c/myTest.properties");
> 
> <quote>
> If that works, I'll explain why. ;-)
> </quote>

As Joakim explained each plug-in runs inside its own ClassLoader so you
need to use the ClassLoader which loaded the plug-in in order to find
any resources packaged with the plug-in.

> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

We know what we are, but know not what we may be.

  -- Shakespeare


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to