Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2012-03-12 20:07:11 +0000
committerIan Bull2012-03-12 20:18:30 +0000
commite892b6358a25f4ba81e580b478a9a4800cef8bcd (patch)
treea50696eebe9da182825b948e91a34cf61cf8175a
parent707e5cba396765ca92b1e7be56a17aeb1fbb97a6 (diff)
downloadrt.equinox.p2-e892b6358a25f4ba81e580b478a9a4800cef8bcd.tar.gz
rt.equinox.p2-e892b6358a25f4ba81e580b478a9a4800cef8bcd.tar.xz
rt.equinox.p2-e892b6358a25f4ba81e580b478a9a4800cef8bcd.zip
-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