|Bundle.findEntries doesn't find files when deployed as jar [message #790115]
||Fri, 03 February 2012 21:01
| Hendrik Renken
Registered: July 2009
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.
[Updated on: Fri, 03 February 2012 21:32]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01917 seconds