Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354757 - Default root source folder not tagged when creating a web fragment project
Summary: Default root source folder not tagged when creating a web fragment project
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.2.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.5   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Carl Anderson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 14:47 EDT by Roberto Sanchez Herrera CLA
Modified: 2011-08-16 10:31 EDT (History)
0 users

See Also:
ccc: review+


Attachments
Proposed patch (1.38 KB, patch)
2011-08-15 14:59 EDT, Roberto Sanchez Herrera CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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