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

Bug 330916

Summary: JAX-RS - facet install should consider Web project associated with multiple EARs
Product: [WebTools] WTP Webservices Reporter: Eric Peters <ericdp>
Component: jst.wsAssignee: Eric Peters <ericdp>
Status: RESOLVED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: enhancement    
Priority: P3 Flags: ericdp: review? (keith.chong.ca)
Version: 3.2.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Eric Peters CLA 2010-11-23 08:37:20 EST
If adding facet after project is created (for example), if "Shared library" option selected, org.eclipse.jst.ws.jaxrs.core.internal.jaxrssharedlibraryconfig.JAXRSSharedLibConfiguratorDelegate.installSharedLibs(IProject, IProject, IProgressMonitor, List<String>) should be called for each EAR project associated with the web project.
Comment 1 Eric Peters CLA 2010-11-23 10:25:04 EST
Created attachment 183672 [details]
patch

Unit testing included:
-No EAR, new project, deploy option, extender library (as regression)
-3 EARs  (2 associated), shared option, existing project, extender library 
-Deploy option, new project (as regression), extender library 
-User Library, shared library, existing project (as regression)
Comment 2 Eric Peters CLA 2010-11-23 11:10:13 EST
Changes committed to 3.2.3 & HEAD.