commit | 52f27a920706138583e9c6340543670cda8e90cb | [log] [tgz] |
---|---|---|
author | cbridgha <cbridgha> | Mon Jul 16 15:01:56 2007 +0000 |
committer | cbridgha <cbridgha> | Mon Jul 16 15:01:56 2007 +0000 |
tree | 280822a6b1f524ff3a205cdc1aa38d6b50cab371 | |
parent | 1283664a9b5cee525929811a0003a4daacd84686 [diff] |
[196368] removing utility ref issue
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualArchiveComponent.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualArchiveComponent.java index 2ca339e..0e5410a 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualArchiveComponent.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualArchiveComponent.java
@@ -241,9 +241,11 @@ if(file.exists()) loc = file.getLocation(); else { - file = ResourcesPlugin.getWorkspace().getRoot().getFile(archivePath); - if(file.exists()) - loc = file.getLocation(); + if( archivePath.segmentCount() >= 2 ){ + file = ResourcesPlugin.getWorkspace().getRoot().getFile(archivePath); + if(file.exists()) + loc = file.getLocation(); + } } // this is a file on the local filesystem if(loc != null)