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

Bug 330286

Summary: Deployment Assembly not using simplest default runtime path for classpath dependencies
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: amkareh, ccc, jsholl
Version: 3.2Flags: cbridgha: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Jason Peterson CLA 2010-11-15 15:30:46 EST
Created attachment 183161 [details]
patch

When calculating the default runtime path for a classpath dependency mapped to an EE 5/6 EAR the simplest path is not being returned.  For example if I have a utility project mapped to /foo/bar and foo is the EAR's library directory the default runtime path returned would be "../../../foo".  The first "../" is specifying that it maps to the EAR.  The next two are because it is always moving up to the EAR's root directory and then appending the library directory.  It should have just moved up one directory right to the EAR's library directory.
The simplest and best returned path would have been "../../".
Comment 1 Jason Sholl CLA 2010-11-16 09:18:53 EST
Code checked into 32M and HEAD for WTP 3.2.3 and 3.3
Comment 2 Chuck Bridgham CLA 2010-11-17 09:50:20 EST
approved