commit | 6113e2c3f307906ea0184ff81337be68e5b1d893 | [log] [tgz] |
---|---|---|
author | rsanchez <rsanchez> | Tue Aug 16 14:29:29 2011 +0000 |
committer | rsanchez <rsanchez> | Tue Aug 16 14:29:29 2011 +0000 |
tree | 94bb28dae72c90f3adb05bd463467fa5297c5a08 | |
parent | 07b4dd96863a19c7ca1155c150731a9dfa63fab9 [diff] |
[354757] Default root source folder not tagged when creating a web fragment project
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualFolder.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualFolder.java index 7bb0487..a3a1617 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualFolder.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualFolder.java
@@ -154,11 +154,12 @@ if (aProjectRelativeLocation.isUNC()){ aProjectRelativeLocation = aProjectRelativeLocation.makeUNC(false); } + IPath absolutePath = aProjectRelativeLocation.makeAbsolute(); moduleCore = StructureEdit.getStructureEditForWrite(getProject()); WorkbenchComponent aComponent = moduleCore.getComponent(); ComponentResource[] resources = aComponent.findResourcesByRuntimePath(getRuntimePath()); for (ComponentResource resource:resources){ - if (resource.getSourcePath().equals(aProjectRelativeLocation)){ + if (resource.getSourcePath().equals(absolutePath)){ resource.setTag(tag); return true; }