aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
authorDenis Lila <[email protected]>2011-03-23 16:38:33 -0400
committerDenis Lila <[email protected]>2011-03-23 16:38:33 -0400
commit3e70eb2b78afa1529bee6d3e03a60264ac5830c1 (patch)
tree167c6feb3fb45eec0c9fa8659d4d050254e74a4d /netx/net/sourceforge
parent1ac77343ae60de3557d5ee7f0af029a7609aedb7 (diff)
Don't look into <codebase>/META-INF/ for resources.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
index 1a41c1d..b90362a 100644
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -1367,5 +1367,21 @@ public class JNLPClassLoader extends URLClassLoader {
public JNLPClassLoader getParentJNLPClassLoader() {
return parentJNLPClassLoader;
}
+
+ @Override
+ public Enumeration<URL> findResources(String name) throws IOException {
+ if (!name.startsWith("META-INF")) {
+ return super.findResources(name);
+ }
+ return (new Vector<URL>(0)).elements();
+ }
+
+ @Override
+ public URL findResource(String name) {
+ if (!name.startsWith("META-INF")) {
+ return super.findResource(name);
+ }
+ return null;
+ }
}
}