Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354757

Summary: Default root source folder not tagged when creating a web fragment project
Product: [WebTools] WTP Common Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: wst.commonAssignee: Roberto Sanchez Herrera <shr31223>
Status: RESOLVED FIXED QA Contact: Carl Anderson <ccc>
Severity: normal    
Priority: P3 Flags: ccc: review+
Version: 3.2.5   
Target Milestone: 3.2.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Roberto Sanchez Herrera CLA 2011-08-15 14:47:59 EDT
As part of enhancement 121460, when a Java EE project is created, a source folder is mapped as the default source root, but this is not working for Web fragment projects. This is because while the other Install delegates add a / prefix to the path that is going to be marked as default root source, the delegate for web fragments does not add the / prefix. 

I'm opening this against wst.common because the fix should be put in the VirtualFolder.tagResource() method.
Comment 1 Roberto Sanchez Herrera CLA 2011-08-15 14:59:44 EDT
Created attachment 201514 [details]
Proposed patch
Comment 2 Roberto Sanchez Herrera CLA 2011-08-16 10:31:35 EDT
Code committed to R3_2_maintenance and HEAD for WTP 3.2.5, 3.3.1 and 3.4