diff options
author | DJ Houghton | 2011-12-16 19:42:58 +0000 |
---|---|---|
committer | DJ Houghton | 2011-12-16 19:42:58 +0000 |
commit | 3b0dbdbc3efa9d5626f6207dd117dc94e3699bdd (patch) | |
tree | 6a4f9cc1d928868909dc5f4b960eedf384e65f3e | |
parent | 4698e4c5d201111fbdcfe95a5cc211bdcb002806 (diff) | |
download | rt.equinox.bundles-3b0dbdbc3efa9d5626f6207dd117dc94e3699bdd.tar.gz rt.equinox.bundles-3b0dbdbc3efa9d5626f6207dd117dc94e3699bdd.tar.xz rt.equinox.bundles-3b0dbdbc3efa9d5626f6207dd117dc94e3699bdd.zip |
Bug 366972 - platform:/plugin/ URLs do not resolve items within embedded jarsv20111216-1942
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java index 39393859e..1ac5a9fe8 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -78,6 +78,10 @@ public class PlatformURLPluginConnection extends PlatformURLConnection { URL result = b.getEntry(path); if (result != null || "/".equals(path)) //$NON-NLS-1$ return result; + // try resolving the path through the classloader + result = b.getResource(path); + if (result != null) + return result; // if the result is null then force the creation of a URL that will throw FileNotFoundExceptions return new URL(b.getEntry("/"), path); //$NON-NLS-1$ } |