Bug 300542 - [build path] user library dialog should allow to select JAR from workspace
Summary: [build path] user library dialog should allow to select JAR from workspace
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 minor with 1 vote (vote)
Target Milestone: 3.8 M7   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 14:21 EST by Ray Kelm CLA
Modified: 2012-03-20 06:39 EDT (History)
2 users (show)

See Also:
markus.kell.r: review+


Attachments
Patch to support jars relative to workspace (7.89 KB, patch)
2011-06-15 05:44 EDT, Thomas Reinhardt CLA
markus.kell.r: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ray Kelm CLA 2010-01-22 14:21:15 EST
Build Identifier: 

When adding a jar to a user library, you are give the dialog for selecting a file with an external path.

When attaching the source attachment or native library location you can select either an external path or a workspace path.

It would be useful to also be able to specify the jar location as a workspace path, which would aid in sharing projects with other people.


Reproducible: Always

Steps to Reproduce:
1. Open preferences, navigate to Java -> Build Path -> User Libraries
2. Click New, and enter a name for the User Library.
3. Click "Add JARs", note the dialog type.
4. Select the "Native libary location" element, click "Edit".
5. Note the dialog type which allows for choosing an External Folder or Workspace path.
Comment 1 Markus Keller CLA 2010-01-25 08:30:15 EST
Workspace paths are already supported (bug 133191), but you currently have to find them with the OS chooser.

Could do something like in Java Build Path > Libraries, i.e. have "Add JARs..." and "Add External JARs...".
Comment 2 Thomas Reinhardt CLA 2011-06-15 05:44:11 EDT
Created attachment 198007 [details]
Patch to support jars relative to workspace
Comment 3 Markus Keller CLA 2012-03-20 06:39:43 EDT
Thanks for the patch and sorry for the long delay. Released as http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=61c6412336c77080d14c58217e33e6642d1e6c2f