IntelliJ IDEA - Eclipse .classpath files and relative locations?

故事扮演 提交于 2019-12-10 16:24:47

问题


I'd like to use IntelliJ IDEA with an Eclipse project, without converting the project format.

The main problem I'm running into right now is that in my .classpath file, we have entries like:

<classpathentry kind="lib" path="/lib/whatever.jar" />

In Eclipse, that path is relative to the workspace root. But in IntelliJ, I believe it's looking for the actual "/lib" folder on my hard drive, which obviously doesn't exist.

How can I maintain the Eclipse functionality while having IntelliJ look in the "lib" module in my project? Is there a variable that both support?

来源:https://stackoverflow.com/questions/29631078/intellij-idea-eclipse-classpath-files-and-relative-locations

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