Listing all files contained in an Eclipse plugin
Within a Plugin instance, the following code will return all files (*) within the “src” directory (and recursively):
Enumeration<?> e = getBundle().findEntries("src", "*", true);
while (e.hasMoreElements()) {
System.out.println(e.nextElement()); // returns URLs of type bundleentry://
}