Configuring Eclipse to add a buildpath folder outside the workspace

倾然丶 夕夏残阳落幕 提交于 2019-12-19 10:46:13

问题


I'm developing PHP on a mac. As per other suggestions, I've set the workspace to be in the HTDOCS folder of MAMP.

Unfortunately, this means I cannot use links to '/' as I would in production. Any suggestions?

Relatedly, the workspace seems to prevent references to build paths outside the workspace, yet I would Like to keep my sensitive files outside the base workspace folder. Is there a way to do this?


回答1:


I usually use the "link" feature:

  • select folder in which you want to create the link (i.e. root itself);
  • right-click -> new -> Folder
  • click "Advanced" button
  • check "Link to folder in the filesystem" and browse for the folder under htdocs

This should help




回答2:


I have no experience using eclipse with PHP, but for Java, you can "Add External Class Folder" in the "Libraries" tab of the Build Path dialog. Generally, anything that's outside the workspace is called "external" and accessible only through such special options.



来源:https://stackoverflow.com/questions/611194/configuring-eclipse-to-add-a-buildpath-folder-outside-the-workspace

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