how to get value of eclipse .classpath classpathentry

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 12:41:18

问题


I am writing some eclipse plugin that will do some work for BlackBerry developers.

This is the .classpath file entry of my BB project:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/net.rim.ejde.BlackBerryVMInstallType/BlackBerry JRE 5.0.0"/> 

Using this information is it possible (programmatically) to find out the exact location of the rim plugin on the disk ?

In my case I am looking for the following pass: D:\WORK\eclipse-java-galileo-SR2-win32\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25

But I need to find the pass from my Eclipse Plugin java code.

My second question is how can i get from code .classpath file of my BlackBerry project.

Regards, Slavik.


回答1:


You can get the classpath entries from your IJavaProject, which you can get from your IProject something like this:

IJavaProject javaProject = (IJavaProject) JavaCore.create(project);  


来源:https://stackoverflow.com/questions/4231841/how-to-get-value-of-eclipse-classpath-classpathentry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!