Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/embeddedequinox/EmbeddedEquinox.java6
1 files changed, 3 insertions, 3 deletions
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 33158051d..6dc33c0fe 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 @@ public class EmbeddedEquinox {
}
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);

Back to the top