Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsrinivasan2006-12-21 19:32:29 -0500
committerrsrinivasan2006-12-21 19:32:29 -0500
commitc3efb43316afe4bf92f244915b83a520fbb44c31 (patch)
tree88932ff2b477a89c174795d2f3ad3e1c646a358e
parent144ebbef0cb81914243e72a9d515fa901f701336 (diff)
downloadwebtools.jsf-c3efb43316afe4bf92f244915b83a520fbb44c31.tar.gz
webtools.jsf-c3efb43316afe4bf92f244915b83a520fbb44c31.tar.xz
webtools.jsf-c3efb43316afe4bf92f244915b83a520fbb44c31.zip
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159971
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/jsflibraryregistry/impl/ArchiveFileImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/jsflibraryregistry/impl/ArchiveFileImpl.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/jsflibraryregistry/impl/ArchiveFileImpl.java
index 3a4348ff2..6b6e74fea 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/jsflibraryregistry/impl/ArchiveFileImpl.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/jsflibraryregistry/impl/ArchiveFileImpl.java
@@ -18,10 +18,12 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
+import java.util.Collections;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
@@ -441,6 +443,12 @@ public class ArchiveFileImpl extends EObjectImpl implements ArchiveFile {
try {
Path srcPath = new Path(sourceLocation);
URL fileURL = Platform.find(bundle, srcPath);
+ if (fileURL == null) {
+ String bundleName = srcPath.segments()[0];
+ bundle = Platform.getBundle(bundleName);
+ fileURL = FileLocator.find(bundle, srcPath
+ .removeFirstSegments(1), Collections.EMPTY_MAP);
+ }
URL url = Platform.resolve(fileURL);
resolvedSourceLocation = url.getPath();
} catch (IOException e) {

Back to the top