Bug 329721 - directory extra classpath entries not supported
Summary: directory extra classpath entries not supported
Status: CLOSED DUPLICATE of bug 327769
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 327899
  Show dependency tree
 
Reported: 2010-11-08 21:48 EST by Jeff McAffer CLA
Modified: 2010-11-09 09:37 EST (History)
1 user (show)

See Also:


Attachments
fix for the problem (1.15 KB, patch)
2010-11-08 21:48 EST, Jeff McAffer CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***