Hi Greg,

I'm the maintainer for the Jenkins TFS plugin.  I had to do something 
similar when I started using Microsoft's TFS SDK for Java.  Take a look at 
the ensureNativeLibrariesConfigured() method in 
src/main/java/hudson/plugins/tfs/model/Server.java:  
https://github.com/jenkinsci/tfs-plugin/blob/333515c4fb20a1d7a345f6b1f9ae06efda1e108a/src/main/java/hudson/plugins/tfs/model/Server.java#L63
  
Notice the pathToLibFolder variable?

In my case, I ship the JAR and its related "native" folder with my plugin, 
so I try to discover the path to my plugin's WEB-INF/lib folder (rather 
than Jenkins'), which I think is the correct thing to do since those things 
are part of the plugin and I would expect them to be updated at the same 
time as the plugin, etc.  It looks like all I had to do was put those files 
under src/main/webapp/WEB-INF/lib/ and they were packaged in the JAR/HPI 
accordingly.

Good luck!
- Oli

On Tuesday, November 12, 2013 6:28:02 PM UTC-5, Greg Peters wrote:
>
> Is there a way to get runtime access to the WEB-INF/lib folder of Jenkins. 
> Something similar to Servlet.getRealPath()...
>
> I'm trying to load third party jar libraries at runtime and validate that 
> are loaded.
>
> Any ideas?
>

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to