将外部源文件夹与名称“src”链接在日食项目中 [英] Linking external source folder with name "src" in an eclipse project

查看:166
本文介绍了将外部源文件夹与名称“src”链接在日食项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是关于在eclipse java项目中链接源的问题

是否可以添加名为src的外部文件夹eclipse作为源文件夹。
这里的问题是将外部文件夹名称保留为src,而不是任何其他名称;做到这一点,我尝试从标准的eclipse java项目中删除src和bin文件夹,然后尝试链接源,但这不起作用。

Is it possible to add an external folder named "src" in eclipse as the source folder. The problem here is to keep the external folder name as "src" and not any other name; to do that I tried deleting src and bin folder from the standard eclipse java project and then tried to "Link Source" but that does not work.

是否有其他方式我可以使这种情况发生吗?

Is there any other way I can make this happen?

这是使Eclipse java项目的src实际上指向一个名为src的外部文件夹?
与put put文件夹bin类似的问题。

That is make the Eclipse java project's src actually point to an external folder named "src"? Similar issues with the out put folder "bin" as well.

System Information
OS: Windows 8, 32 bit
Eclipse: 3.7

谢谢。

推荐答案

您需要使用Eclipse从项目配置中删除现有的源文件夹,然后从文件系统中删除,然后可以添加外部链接的源文件夹作为src。

You need to use Eclipse to remove the existing source folder from the project configuration, then delete it from the filing system, then you can add the externally linked source folder as "src".


  1. 右键单击项目,并弹出属性...

  1. Right-click on the project and bring up "Properties..."

单击Java构建路径,然后单击源选项卡以显示构建路径上源文件夹的列表。

Click on "Java Build Path" and then the "Source" tab to show a list of the source folders on the build path.

选择yourproject / src,然后单击删除按钮。这将从项目(以及 .classpath 文件)中删除它。

Select "yourproject/src" and click the "Remove" button. This will remove it from the project (and the .classpath file).

并实际删除该文件夹。

返回该对话框,此时点击链接源...。它现在应该工作它适用于我。

Go back to that dialog box and this time click "Link source...". It should work now. It works for me.

这篇关于将外部源文件夹与名称“src”链接在日食项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆