if (startsWithSlash) {
pkg = FOLDER_SEPARATOR + pkg;
}
final PathMatcher matcher = getPathMatcher();
// if the imported package matches the path
if (matcher.matchStart(path, pkg)) {
// start the JAR analysis
Enumeration entries = importedBundle.getBundle().getEntryPaths(pkg);
while (entries != null && entries.hasMoreElements()) {
String entry = (String) entries.nextElement();
if (startsWithSlash)
entry = FOLDER_SEPARATOR + entry;
if (matcher.match(path, entry)) {
if (trace)
logger.trace("Found entry [" + entry + "]");
foundPaths.add(entry);
}
}