Is it possible to load an eclipse Java project using JDT in the headless mode?
问题 I have an eclipse Java project and want to get information like project source dir, classpaths, etc. My current implementation parses the .project file. But as I didn't find any official documentation describing the structure of the .project file, I have some concerns for the robustness of this approach. A more convenient and robust way would be to use JDT (headlessly) to load the project and get the relevant information from the IJavaProject object. Although the developer guide of JDT says