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

Bug 329721

Summary: directory extra classpath entries not supported
Product: [Eclipse Project] Platform Reporter: Jeff McAffer <jeffmcaffer>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 327899    
Attachments:
Description Flags
fix for the problem none

Description Jeff McAffer CLA 2010-11-08 21:48:05 EST
Created attachment 182674 [details]
fix for the problem

the Eclipse Ant extra classpath entries extension point allows folks to contribute .jars to the classpath of the ant loader used to run a build but not a directory.  The problem comes down to the code in computeDefaultExtraClasspathEntries where it gets a URL, converts to a file, makes it absolute and then creates a URL.  The URL starts out with a '/' on the end to indicate directory but converting to a file loses that.  The final URL does NOT have a '/' so the URL/Ant classloader ignores it.

I'll attach a simple and safe patch that corrects the problem.
Comment 1 Darin Wright CLA 2010-11-09 09:37:10 EST

*** This bug has been marked as a duplicate of bug 327769 ***