Community
Participate
Working Groups
Build Identifier: 20100617-1415 At the moment IOption doesn't have getLibraryFiles() that would allow to get existing Library search paths from Tool's Option. However getLibraries() and getLibraryFiles() exists but they don't have same funtionality as getLibraryFiles() that's valueType should be LIBRARY_PATHS=9. Reproducible: Always
Created attachment 175331 [details] Existing Library search paths (String[]) can be returned by calling option.getLibraryPaths() where option is a type of IOption.
I messed the initial Bug description a bit. I meant there's no getLibraryPaths() method. Here's fixed description: At the moment IOption doesn't have getLibraryPaths() that would allow to get existing Library search paths from Tool's Option. However getLibraries() and getLibraryFiles() exists but they don't have same funtionality as getLibraryPaths() that's valueType should be LIBRARY_PATHS=9.
Getting Library search paths from Tool's Option needs to be committed on the CVS HEAD. It's just a similar way to get library search paths as it is to get include paths or library files. For some reason this functionality is missing. I really need this to be added to make a great plugin to work I have been working with and planning to donate it to Eclipse Foundation soon (when newer CDT version comes with all necessary fixes). I hope you will understand that this issue is quite urgent for me.
Please check the attachment and preferably apply it to the CVS Head. It's been quite a while.
Hi Petri, I believe the patch is missing a @since 8.0 tag in IOption.
Comment on attachment 175331 [details] Existing Library search paths (String[]) can be returned by calling option.getLibraryPaths() where option is a type of IOption. For any further patches, things to keep in mind: - Ensure you have API tooling setup with CDT 7 as a baseline: http://wiki.eclipse.org/PDE/API_Tools/User_Guide#Define_an_API_Baseline - Update the copyright header date + add yourself to the list of contributors - Ensure that your patch doesn't add any warnings or errors to the build
Committed to HEAD.
*** cdt cvs genie on behalf of jblackburn *** Bug 321040 - Getting Library search paths from Tool's Option [*] IOption.java 1.29 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOption.java?root=Tools_Project&r1=1.28&r2=1.29 [*] Option.java 1.50 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Option.java?root=Tools_Project&r1=1.49&r2=1.50 [*] OptionReference.java 1.37 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionReference.java?root=Tools_Project&r1=1.36&r2=1.37