Bundle.findEntries doesn't find files when deployed as jar [message #790115] |
Fri, 03 February 2012 21:01 |
Hendrik Renken Messages: 18 Registered: July 2009 |
Junior Member |
|
|
Hi there,
I'm trying to deploy our self made development platform as a Java-Library consisting of a bunch of jars. Therefore i created a new plugin, added two extensions to org.eclipse.jdt.core and org.eclipse.jdt.ui for Classpath-Entry specification and so far that works fine.
Now the plugin contains our custom code as jars in a directory called 'lib' .
Now i want to reference those files in my ClasspathEntry. To find the .jars (their actual name changes when the jars are updated) i'm using Bundle#findEntries(".", "*.jar", true)
In development mode this works fine, but after deployment through a p2-update site, findEntries won't find anything (null is returned). So far, i don't know if it happens to be the permissions that i do not have (but i can't find anything that related to that) or if findEntries can't find the jars because they are contained in the deployed jar.
Could someone push me into the right direction where to look for a solution? It's very cumbersome to debug this because the error only shows up in a production environment.
Regards
Hendrik
[Updated on: Fri, 03 February 2012 21:32] Report message to a moderator
|
|
|
|
|
Re: Bundle.findEntries doesn't find files when deployed as jar [message #790158 is a reply to message #790148] |
Fri, 03 February 2012 22:25 |
Hendrik Renken Messages: 18 Registered: July 2009 |
Junior Member |
|
|
Yeah. Also found that out a couple of minutes ago. Anyway thanks for the response.
At the end i ended up, at the point, that i did have urls of the form jar:file:/Eclipse/plugin.jar!/lib/myjar.jar - after clipping jar:file: from the url (the path has to be absolute to be a classpathentry) i can add my library as an classpathentry but the jars cannot be resolved, because they are inside a jar.
Now i'm extracting my jars into a temporary directory and reference them from there. That works quite fine and i'm able to update the jars now and then when i deploy a new version of the plugin.
[Updated on: Fri, 03 February 2012 22:26] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04195 seconds