I use Eclipse with "external" projects - i.e. projects created from existing source.
我将Eclipse与“外部”项目一起使用 - 即从现有源创建的项目。
Poking around in the workspace files, I cannot find any reference to these projects. My question is: how does Eclipse keep track of these projects?
在工作区文件中查找,我找不到对这些项目的任何引用。我的问题是:Eclipse如何跟踪这些项目?
I'd like to be able to add such a project to the workspace automatically (by generating .project
and .classpath
files).
我希望能够自动将这样的项目添加到工作区(通过生成.project和.classpath文件)。
6 个解决方案
#1
145
Windows:
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\
Linux / osx:
Linux / osx:
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/
Your project can exist outside the workspace, but all Eclipse-specific metadata
are stored in that org.eclipse.core.resources\.projects
directory
您的项目可以存在于工作空间之外,但所有特定于Eclipse的元数据都存储在该org.eclipse.core.resources \ .projects目录中
#2
11
In Mac OS X, it is under
在Mac OS X中,它是在
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects
#3
9
In Eclipse 3.3:
在Eclipse 3.3中:
It's installed under your Eclipse workspace. Something like:
它安装在Eclipse工作区下。就像是:
.metadata\.plugins\org.eclipse.core.resources\.projects\
within your workspace folder.
在工作区文件夹中。
Under that folder is one folder per project. There's a file in there called .location, but it's binary.
在该文件夹下是每个项目一个文件夹。那里有一个名为.location的文件,但它是二进制文件。
So it looks like you can't do what you want, without interacting w/ Eclipse programmatically.
因此,如果没有以编程方式与Eclipse进行交互,看起来你无法做到你想做的事情。
#4
3
If you are using Perforce (imported the project as a Perforce project), then .cproject and .project will be located under the root of the PERFORCE project, not on the workspace folder.
如果您使用Perforce(将项目作为Perforce项目导入),则.cproject和.project将位于PERFORCE项目的根目录下,而不是位于工作区文件夹下。
Hope this helps :)
希望这可以帮助 :)
#5
0
You can also have several workspaces - so you can connect to one and have set "A" of projects - and then connect to a different set when ever you like.
您还可以拥有多个工作区 - 因此您可以连接到一个工作区并设置“A”项目 - 然后在您喜欢的时候连接到另一个工作区。
#6
0
In Linux after deleting
在删除后的Linux中
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\
Does not worked.
不起作用。
After that i have done File->Refresh
之后我完成了File-> Refresh
Then it cleared all old project listed from eclipse.
然后它清除了从eclipse列出的所有旧项目。
#1
145
Windows:
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\
Linux / osx:
Linux / osx:
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/
Your project can exist outside the workspace, but all Eclipse-specific metadata
are stored in that org.eclipse.core.resources\.projects
directory
您的项目可以存在于工作空间之外,但所有特定于Eclipse的元数据都存储在该org.eclipse.core.resources \ .projects目录中
#2
11
In Mac OS X, it is under
在Mac OS X中,它是在
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects
#3
9
In Eclipse 3.3:
在Eclipse 3.3中:
It's installed under your Eclipse workspace. Something like:
它安装在Eclipse工作区下。就像是:
.metadata\.plugins\org.eclipse.core.resources\.projects\
within your workspace folder.
在工作区文件夹中。
Under that folder is one folder per project. There's a file in there called .location, but it's binary.
在该文件夹下是每个项目一个文件夹。那里有一个名为.location的文件,但它是二进制文件。
So it looks like you can't do what you want, without interacting w/ Eclipse programmatically.
因此,如果没有以编程方式与Eclipse进行交互,看起来你无法做到你想做的事情。
#4
3
If you are using Perforce (imported the project as a Perforce project), then .cproject and .project will be located under the root of the PERFORCE project, not on the workspace folder.
如果您使用Perforce(将项目作为Perforce项目导入),则.cproject和.project将位于PERFORCE项目的根目录下,而不是位于工作区文件夹下。
Hope this helps :)
希望这可以帮助 :)
#5
0
You can also have several workspaces - so you can connect to one and have set "A" of projects - and then connect to a different set when ever you like.
您还可以拥有多个工作区 - 因此您可以连接到一个工作区并设置“A”项目 - 然后在您喜欢的时候连接到另一个工作区。
#6
0
In Linux after deleting
在删除后的Linux中
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\
Does not worked.
不起作用。
After that i have done File->Refresh
之后我完成了File-> Refresh
Then it cleared all old project listed from eclipse.
然后它清除了从eclipse列出的所有旧项目。