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

Bug 327276

Summary: EAR Libraries Classpath Container not properly picking up remapped lib folder entries
Product: [WebTools] WTP Java EE Tools Reporter: Jason Sholl <jsholl>
Component: jst.j2eeAssignee: Jason Sholl <jsholl>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: major    
Priority: P3 CC: ccc
Version: 3.2Flags: cbridgha: review+
Target Milestone: 3.2.2 P   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:
Attachments:
Description Flags
Patch for 3.2.2
none
updated patch none

Description Jason Sholl CLA 2010-10-07 16:10:29 EDT
If a EE5 or EE6 ear has a remapped lib folder, e.g. "foo", EAR libraries are not properly picking up the the classpath entries mapped to that folder.  They only properly pick them up if the entry is proceeded with a '/', e.g. "/foo", but this is not required by the spec.  The fix is to take advantage of the IPath.makeRelative() when doing the comparisons to compute which artifacts are indeed in the ear's remapped lib folder.
Comment 1 Jason Sholl CLA 2010-10-07 16:11:56 EDT
Created attachment 180449 [details]
Patch for 3.2.2
Comment 2 Jason Sholl CLA 2010-10-08 14:56:29 EDT
Created attachment 180512 [details]
updated patch

Updates to handle doing nothing when the user sets the lib dir to be nothing, e.g. <library-directory></library-directory>
Comment 3 Chuck Bridgham CLA 2010-10-08 15:13:40 EDT
approved
Comment 4 Carl Anderson CLA 2010-10-11 17:16:14 EDT
Committed to R3_2_2_patches
Comment 5 Jason Sholl CLA 2010-10-12 10:09:56 EDT
code checked into 32M and HEAD for WP 3.2.3 and 3.3