Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353941 - Provide api for determining web context root providing related ear project
Summary: Provide api for determining web context root providing related ear project
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.2.4   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 3.2.5   Edit
Assignee: Chuck Bridgham CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 369017
  Show dependency tree
 
Reported: 2011-08-04 17:21 EDT by Chuck Bridgham CLA
Modified: 2012-01-18 20:06 EST (History)
1 user (show)

See Also:
ccc: review+


Attachments
patch (2.10 KB, patch)
2011-08-04 17:23 EDT, Chuck Bridgham CLA
no flags Details | Diff
new patch with junit (4.80 KB, patch)
2011-09-07 15:27 EDT, Chuck Bridgham CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chuck Bridgham CLA 2011-08-04 17:21:18 EDT
No API currently exists on "WebUtilities" class to return the web context root based on either the component property if standalone, or via the Ear module's property.
Comment 1 Chuck Bridgham CLA 2011-08-04 17:23:42 EDT
Created attachment 200945 [details]
patch
Comment 2 Carl Anderson CLA 2011-08-08 11:34:38 EDT
Chuck, in the case of an EAR 5 or EAR 6 where there is no application.xml, the context root of a web module is the module name.  Have you tested that scenario with this API?
Comment 3 Chuck Bridgham CLA 2011-08-30 15:51:58 EDT
I need to make sure... but actually.. because there is a property in the component model for context root... if nothing is defined by the ear...  then the war's property is used.
Comment 4 Chuck Bridgham CLA 2011-09-07 15:27:38 EDT
Created attachment 202929 [details]
new patch with junit
Comment 5 Chuck Bridgham CLA 2011-09-07 15:28:44 EDT
All scenarios check out....    included in ear or now... Ear has DD or not  etc...
Comment 6 Chuck Bridgham CLA 2011-09-19 11:10:41 EDT
Code dropped