Skip to Content

getJdtClassPath and source attachments

Posted in

Hi all,

using getJdtClassPath I can load an Eclipse project's classpath. which may, howver, contain source or javadoc attachments like below.

classpathentry kind="lib" path="some.jar" sourcepath="/some/absolute/platformspecific/path/java"

Whenever this happens, I get the error message:

"The linked resource '/some/absolute/platformspecific/path/java' does not exist"

Since I am building in a different environment, the sources for the libraries might not be available at that defined location, and actually should not be essential for the classpath.

Is there any way to tell getJdtClassPath to not consider such attachments?

Thanks in advance!

- Andy

An example ?

Hi,

I'm one of the few guys who's using these settings, too. Nevertheless I've never noticed that issue so it would be nice if you could file a JIRA issue with a corresponding reduced project setup in order to make it reproducable and if it's an issue I will see to it that it got fixed (since these entries shouldn't interfere with the build process).

Best regards