I tried this - saved the current class loader, then did a 
setContextClassLoader(MyClass.class.getClassLoader).  It immediately 
failed: NoClassDefFound when trying to reference MyClass.  

On Thursday, May 7, 2015 at 12:52:27 PM UTC-7, Jesse Glick wrote:
>
> On Thu, May 7, 2015 at 1:16 PM, Greg Allen <[email protected] 
> <javascript:>> wrote: 
> > It looks like I need to add my plugins jar files onto the classpath 
> following the example above. 
>
> Absolutely not. Just temporarily set the Thread.contextClassLoader to 
> SomeClassInMyPlugin.class.getClassLoader(). 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/2da2bb43-96fc-4806-97f4-da633e8a00a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to