diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2002-10-10 17:58:00 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2002-10-10 17:58:00 +0000 |
| commit | 47ac56be82c72f83caff34ce4ac8f8e71bf8065a (patch) | |
| tree | 9b024a0a3e5f7e9ea25f8a10c704c6fa17bdc4f1 /www/cocoon/files/patch-Utils.java | |
| parent | a7b4667654401c6cff9093ae6ebd74c74d6776ac (diff) | |
Diffstat (limited to 'www/cocoon/files/patch-Utils.java')
| -rw-r--r-- | www/cocoon/files/patch-Utils.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/www/cocoon/files/patch-Utils.java b/www/cocoon/files/patch-Utils.java deleted file mode 100644 index 5f89c384dc3e..000000000000 --- a/www/cocoon/files/patch-Utils.java +++ /dev/null @@ -1,51 +0,0 @@ -$FreeBSD$ - ---- src/org/apache/cocoon/Utils.java.orig Sun May 12 13:30:49 2002 -+++ src/org/apache/cocoon/Utils.java Sun May 12 13:30:58 2002 -@@ -331,16 +331,20 @@ - */ - public static final Object getLocationResource(String location) throws MalformedURLException { - Object resource = null; -- -+ - if (location.indexOf("://") < 0) { - resource = new File(location); - } else if (location.startsWith("resource://")) { - // FIXME (SM): this should _not_ be system resource, but rather a resource of current classloader -- resource = ClassLoader.getSystemResource(location.substring("resource://".length())); -+// resource = ClassLoader.getSystemResource(location.substring("resource://".length())); -+ -+ // The Fix! -+ Dummy classloadrefernce = new Dummy(); -+ resource = classloadrefernce.getClass().getClassLoader().getResource(location.substring("resource://".length())); - } else { - resource = new URL(location); - } -- -+ - return resource; - } - -@@ -362,11 +366,20 @@ - resource = new File(location); - } else if (location.startsWith("resource://")) { - // FIXME (SM): this should _not_ be system resource, but rather a resource of current classloader -- resource = ClassLoader.getSystemResource(location.substring("resource://".length())); -+// resource = ClassLoader.getSystemResource(location.substring("resource://".length())); -+ -+ // The Fix! -+ Dummy classloadrefernce = new Dummy(); -+ resource = classloadrefernce.getClass().getClassLoader().getResource(location.substring("resource://".length())); - } else { - resource = new URL(location); - } -- -+ - return resource; - } -+ -+} -+ -+class Dummy { -+ String why = "to provide a classloader ref"; - } |
