Need to check for the org.osgi.resource package
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/embeddedequinox/EmbeddedEquinox.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/embeddedequinox/EmbeddedEquinox.java
index 3315805..6dc33c0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/embeddedequinox/EmbeddedEquinox.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/embeddedequinox/EmbeddedEquinox.java
@@ -75,21 +75,21 @@
}
protected Class findClass(String name) throws ClassNotFoundException {
- if (name.startsWith("org.osgi.framework."))
+ if (name.startsWith("org.osgi.framework.") || name.startsWith("org.osgi.resource."))
// TODO this should call findClass; but then have to use reflection!!
return embeddedBundleLoader.loadClass(name);
return super.findClass(name);
}
public URL findResource(String name) {
- if (name.startsWith("org/osgi/framework/"))
+ if (name.startsWith("org/osgi/framework/") || name.startsWith("org/osgi/resource/"))
// TODO this should call findResource; but then have to use reflection!!
return embeddedBundleLoader.getResource(name);
return super.findResource(name);
}
public Enumeration findResources(String name) throws IOException {
- if (name.startsWith("org/osgi/framework/"))
+ if (name.startsWith("org/osgi/framework/") || name.startsWith("org/osgi/resource/"))
// TODO this should call findResources; but then have to use reflection!!
return embeddedBundleLoader.getResources(name);
return super.findResources(name);