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

Bug 297882

Summary: SingleRoot should be allowed for projects without src folder
Product: [WebTools] WTP Java EE Tools Reporter: Jason Peterson <jasonpet>
Component: jst.j2eeAssignee: Jason Peterson <jasonpet>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, jsholl
Version: 3.0.5Flags: jsholl: review+
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
updated_patch none

Description Jason Peterson CLA 2009-12-15 13:32:33 EST
Currently the single root rules require that a non web project have atleast one Java source folder assigned as a root folder.  It requires that a web project have atleast one Java source folder mapped to webinf/classes.  This rule is too restrictive and is being removed.  It is valid for a project to have a non java source folder defined as the root folder and still have a single root structure.  

The single root utility will now return true as long as this non Java source folder is the only defined mapping in the component file.  The getSingleRoot() API will now return this folder as the single root container.
Comment 1 Jason Peterson CLA 2009-12-15 13:32:59 EST
Created attachment 154508 [details]
patch
Comment 2 Jason Peterson CLA 2010-01-04 15:39:29 EST
Created attachment 155276 [details]
updated_patch

updated patch to make sure the sourcepath exists for the resource defined as the content root
Comment 3 Jason Sholl CLA 2010-01-11 14:59:33 EST
code checked into HEAD for 32 M5